FasdUAS 1.101.10 k p 0mydocMyDoc l  w i I .DAEDopnt****utxt o 0 thisclipping ThisClipping n I 80handleentouragepushtofocusHandleEntouragePushToFocus o 0 thisclipping ThisClipping f daedalis` Macintosh HDyH+Quicksilver.appa$ Applications:av)Macintosh HD:Applications:Quicksilver.app Quicksilver.app Macintosh HDApplications/Quicksilver.app/  l l  -------------------------------------------------------------------------------------------------------------------------- HANDLER: HandleEntouragePushToFocus Runs through all the selected emails in entourage and creates OmniFocus tasks for each of them with the specified project (if any) and context (if any) -------------------------------------------------------------------------------------------------------------------------- f -------------------------------------------------------------------------------------------------------------------------- HANDLER: HandleEntouragePushToFocus Runs through all the selected emails in entourage and creates OmniFocus tasks for each of them with the specified project (if any) and context (if any) --------------------------------------------------------------------------------------------------------------------------  l 4.HandleEntouragePushToFocus("> Joshua @ Email")  \HandleEntouragePushToFocus("> Joshua @ Email")!" !l"#$ #i%& %I' 80handleentouragepushtofocusHandleEntouragePushToFocus'( (o 0incomingstringIncomingString &k))*+ *l+,- ,l./ .:4 set the Omnifocus document we shall be referring to/00h set the Omnifocus document we shall be referring to-12 1O 34 3r 56 51  FCDo 6o 0mydocMyDoc 4m77OFOCalisX Macintosh HDyH+ OmniFocus.app(I Applications:JU'Macintosh HD:Applications:OmniFocus.app OmniFocus.app Macintosh HDApplications/OmniFocus.app/289 8l 9: :O ;< ;k==>? >l?@A @lBC B5/ get the currently selected message or messagesCDD^ get the currently selected message or messagesAEF ErGH G1  CMgs Ho $0selectedmessagesselectedMessagesFIJ IlJKL KlMN ME? if there are no messages selected, warn the user and then quitNOO~ if there are no messages selected, warn the user and then quitLPQ PZ"RS R=TU To $0selectedmessagesselectedMessages UJ SLQVW Vl##WXY Xl##Z[ Z for all messages, [\\& for all messages, Y] ]X#^_ ^k3``ab al33bcd cl33ef e3- determine what the title of the task will befggZ determine what the title of the task will bedhi hr38jk jn36lm l146  subj mo34 0 themessage theMessage ko 0thenametheNameino nr9@pq pn9>rs r1<>  dspn sn9<tu t1:<  sndr uo9: 0 themessage theMessage qo 0 thesender theSenderovw vrAHxy xbAFz{ zbAD|} |oAB 0 thesender theSender }mBC~~: {oDE 0thenametheName yo 0thetitletheTitlew lII lII 82 determine the content and the link to the messaged determine the content and the link to the message rIN nIL 1JL  ctnt oIJ 0 themessage theMessage o 0 thecontent theContent rOV cOT nOR 1PR  ID oOP 0 themessage theMessage mRS  TEXT o 0theidtheID rW\ bWZ mWXRmdfind com_microsoft_entourage_recordID== oXY 0theidtheID o 0 thecommand theCommand r]k l]i n]i 4fi  cobj mgh n]f 2bf  cpar l]b I]b .sysoexecTEXTTEXT o]^ 0 thecommand theCommand o ,0thepathtomessagefilethePathToMessageFile lll lll ?9 extract the project and context if any were specified r extract the project and context if any were specified  rl Il &0parseincomingtaskParseIncomingTask flm 0 stringtoparse StringToParse opq 0incomingstringIncomingString "0fallbackprojectFallbackProject mtw "0fallbackcontextFallbackContext mz} o 0 parseresults ParseResults r l n o 0 taskproject taskProject o 0 parseresults ParseResults o 0 theproject theProject r l n o 0 taskcontext TaskContext o 0 parseresults ParseResults o 0 thecontext theContext l l 4. make the new omnifocus task using the info \ make the new omnifocus task using the info  n I ,0makenewomnifocustaskMakeNewOmnifocusTask o 0thetitletheTitle o 0 thecontent theContent o 0 thecontext theContext o 0 theproject theProject o ,0thepathtomessagefilethePathToMessageFile f l~}~} 0 themessage theMessage _o&'| |$0selectedmessagesselectedMessages <m OPIMalis Macintosh HDyH+vMicrosoft Entourage.appvZ6n Microsoft Office 2008:6GvGMacintosh HD:Applications:Microsoft Office 2008:Microsoft Entourage.app0Microsoft Entourage.app Macintosh HD:Applications/Microsoft Office 2008/Microsoft Entourage.app/$ l{zy{zy lxwvxwv luu XR -------------------------------------------------------------------------------------------------------------------------- HANDLER: MakeNewOmnifocusTask Creates a new omnifocus task given the specified information --------------------------------------------------------------------------------------------------------------------------  -------------------------------------------------------------------------------------------------------------------------- HANDLER: MakeNewOmnifocusTask Creates a new omnifocus task given the specified information --------------------------------------------------------------------------------------------------------------------------  i Its t,0makenewomnifocustaskMakeNewOmnifocusTask or r0 newtasktitle NewTaskTitle oq q 0newtaskcontentNewTaskContent op p 0newtaskcontextNewTaskContext oo o 0newtaskprojectNewtaskProjectn om m60newtaskattachmentfilenameNewTaskAttachmentFileNamens k llkjlkj O O k  l ihgihg l f  f  RL Create a new task depending on the provided context, project and other info   Create a new task depending on the provided context, project and other info   l edcedc  Z  F  =  o b b 0newtaskcontextNewTaskContext m a a null = o` ` 0newtaskprojectNewtaskProject m_ _ null r( I&^] ^.corecrel****null]\ \ kocl m[ [ FCitZY Z prdt K"  X!" X pnam !oW W0 newtasktitle NewTaskTitle"V#U V FCno #o T T 0newtaskcontentNewTaskContentUY oS S0newtaskNewTask$% $F+6&' &=+.() (o+,R R 0newtaskcontextNewTaskContext )m,-Q Q null '>14*+ *o12P P 0newtaskprojectNewtaskProject +m23O O null%,- ,O9N./ .r=M01 0I=KNM2 N.corecrel****nullM2L34 L kocl 3m?@K K FCac4J5I J prdt 5KAG66H78 H pnam 7oBCG G0 newtasktitle NewTaskTitle8F9E F FCno 9oDED D 0newtaskcontentNewTaskContentEI 1oC C0newtaskNewTask /o9:B B 0newtaskprojectNewtaskProject-:; :FQ\<= <=QT>? >oQRA A 0newtaskprojectNewtaskProject ?mRS@ @ null =>WZ@A @oWX? ? 0newtaskcontextNewTaskContext AmXY> > null;B= Br_qCD CI_o<;E <.corecrel****null;E:FG : kocl Fmab9 9 FCitG8H7 8 prdt HKckII6JK 6 pnam Jode5 50 newtasktitle NewTaskTitleK4LM 4 FCct Lofg3 3 0newtaskcontextNewTaskContextM2N1 2 FCno Nohi0 0 0newtaskcontentNewTaskContent17 Do/ /0newtaskNewTask= OtOP OrxQR QIx.-S ..corecrel****null-S,TU , kocl Tmz{+ + FCacU*V) * prdt VK|WW(XY ( pnam Xo}~' '0 newtasktitle NewTaskTitleY&Z[ & FCct Zo% % 0newtaskcontextNewTaskContext[$\# $ FCno \o" " 0newtaskcontentNewTaskContent#) Ro! !0newtaskNewTask Potu 0newtaskprojectNewtaskProject]^ ]l^_` _lab a0* attach the file name provided to the taskbccT attach the file name provided to the task`de dlefg fZhi h>jk jo 60newtaskattachmentfilenameNewTaskAttachmentFileName km  null iOlm lIn .corecrel****nullnop  kocl om  OSfApq  prdt qKrrst  atfn so 60newtaskattachmentfilenameNewTaskAttachmentFileNamet u  OSin um  boovfals  mlv  vnwx w1  FCno xo 0newtaskNewTask gyz ylz{| {I .OFOCFC> PROJECT CODE @ CONTEXT TASK SUBJECT > "NEW" @ CONTEXT - new project TASK SUBJECT > "1" @ CONTEXT - singleton TASK SUBJECT @ CONTEXT - no project, but will either assign to default proj based on calendar or user preferences on single/unfiled tasks TASK SUBJECT > PROJ CODE | "NEW" | "1" - no context, just project, will be inactive TASK SUBJECT - no project, no context, will be inactive but can still receive a project based on calendar or user defaults Returns a task topic Returns a project parent id or missing value Returns a context value or missing value -------------------------------------------------------------------------------------------------------------------------- L -------------------------------------------------------------------------------------------------------------------------- HANDLER: ParseIncomingTask Analyzes expected string for possible format variations (assuming whitespace inconsistencies). Returns four values (fourth being everything after first paragraph of string, being the possible notes of the task). TASK SUBJECT > PROJECT CODE @ CONTEXT TASK SUBJECT > "NEW" @ CONTEXT - new project TASK SUBJECT > "1" @ CONTEXT - singleton TASK SUBJECT @ CONTEXT - no project, but will either assign to default proj based on calendar or user preferences on single/unfiled tasks TASK SUBJECT > PROJ CODE | "NEW" | "1" - no context, just project, will be inactive TASK SUBJECT - no project, no context, will be inactive but can still receive a project based on calendar or user defaults Returns a task topic Returns a project parent id or missing value Returns a context value or missing value --------------------------------------------------------------------------------------------------------------------------  l i  I &0parseincomingtaskParseIncomingTask 0 stringtoparse StringToParse o 0 somestring SomeString "0fallbackprojectFallbackProject o 0 someproject SomeProject "0fallbackcontextFallbackContext o 0 somecontext SomeContext k l r m> o 0 projectinfix ProjectInfix r m@ o 0 contextinfix ContextInfix r  m new o 0newprojectflagNewProjectFlag r  m 1 o .0singletonsprojectflagSingletonsProjectFlag l Z$ G = o 0 somestring SomeString m = o 0 somestring SomeString m  msng L  l%% Q%7 r(- c(+ o() 0 somestring SomeString m)*  ctxt o 0 somestring SomeString R .ascrerr ******** L57 l88 r8> n8< 49<  cpar m:; o89 0 somestring SomeString o 0 firstline FirstLine I?D .ascrcmnt******** o?@ 0 firstline FirstLine IEL .ascrcmnt******** nEH 2FH  citm oEF 0 firstline FirstLine IMT .ascrcmnt******** nMP 2NP  cwor oMN 0 firstline FirstLine rUZ nUX 2VX  cwor oUV 0 firstline FirstLine o 0 thesewords TheseWords r[h I[f .sysooffslongnull  psof o]^ 0 projectinfix ProjectInfix  psin o_` 0 firstline FirstLine o (0projectinfixoffsetProjectInfixOffset riv Iit .sysooffslongnull  psof okl 0 contextinfix ContextInfix  psin omn 0 firstline FirstLine o (0contextinfixoffsetContextInfixOffset lwz rwz mwx  boovtrue o ,0shoudlresettodotopicShoudlResetTodoTopic GA only set to false below if parsing of proj/context infixes fails only set to false below if parsing of proj/context infixes fails l{{ r{ 1{  txdl o 0 olddelims OldDelims r m 1  txdl r m     o 0 topicstring TopicString   Z2 F ? o (0projectinfixoffsetProjectInfixOffset m ? o (0contextinfixoffsetContextInfixOffset o (0projectinfixoffsetProjectInfixOffset k Z ? o (0projectinfixoffsetProjectInfixOffset m r n!" !7#$  ctxt #4%  cha %m $4&  cha &l' '\() (o (0projectinfixoffsetProjectInfixOffset )m "o 0 firstline FirstLine  o 0 topicstring TopicString*+ *r,- ,n./ .701  ctxt 042  cha 2l3 3[45 4o (0projectinfixoffsetProjectInfixOffset 5m 146  cha 6l7 7\89 8o (0contextinfixoffsetContextInfixOffset 9m /o 0 firstline FirstLine -o 0 projectstring ProjectString+:; :r<= <n>? >7~@A ~ ctxt @4}B } cha BlC|{ C[DE Doz z(0contextinfixoffsetContextInfixOffset Emyy|{ A4xF x cha Fmww ?ov v0 firstline FirstLine =ou u0 contextstring ContextString;GH GrIJ IlKts KcLM LnNO N2r r cwor Ooq q0 topicstring TopicString Mmp p ctxtts Joo o0 topicstring TopicStringHPQ PrRS RlTnm TcUV UnWX W2l l cwor Xok k0 projectstring ProjectString Vmj j ctxtnm Soi i0 projectstring ProjectStringQYh YrZ[ Zl\gf \c]^ ]n_` _2e e cwor `od d0 contextstring ContextString ^mc c ctxtgf [ob b0 contextstring ContextStringhab aF cd c?  ef eo  a a(0contextinfixoffsetContextInfixOffset fm  `` d?gh go_ _(0projectinfixoffsetProjectInfixOffset ho^ ^(0contextinfixoffsetContextInfixOffsetbij ik|kklm lZ6no]\ n?pq po[ [(0contextinfixoffsetContextInfixOffset qmZZ or2rs rn0tu t70Yvw Y ctxt v4"'Xx X cha xm%&WW w4(/Vy V cha yl+.zUT z\+.{| {o+,S S(0contextinfixoffsetContextInfixOffset |m,-RRUT uoQ Q0 firstline FirstLine soP P0 topicstring TopicString]\m}~ }r7N n7L 78LO O ctxt 4<CN N cha l?BML [?B o?@K K(0contextinfixoffsetContextInfixOffset m@AJJML 4DKI I cha lGJHG \GJ oGHF F(0projectinfixoffsetProjectInfixOffset mHIEEHG o78D D0 firstline FirstLine oC C0 contextstring ContextString~ rOd nOb 7PbB B ctxt 4T[A A cha lWZ@? [WZ oWX> >(0projectinfixoffsetProjectInfixOffset mXY==@? 4\a< < cha m_`;; oOP: :0 firstline FirstLine o9 90 projectstring ProjectString rel lej87 cej neh 2fh6 6 cwor oef5 50 topicstring TopicString mhi4 4 ctxt87 o3 30 topicstring TopicString rmt lmr21 cmr nmp 2np0 0 cwor omn/ /0 projectstring ProjectString mpq. . ctxt21 o- -0 projectstring ProjectString, ru| luz+* cuz nux 2vx) ) cwor ouv( (0 contextstring ContextString mxy' ' ctxt+* o& &0 contextstring ContextString,j ? o% %(0projectinfixoffsetProjectInfixOffset m$$ k Z#" ? o! !(0projectinfixoffsetProjectInfixOffset m   r n 7  ctxt 4  cha m 4  cha l \ o (0projectinfixoffsetProjectInfixOffset m o 0 firstline FirstLine o 0 topicstring TopicString#" r n 7  ctxt 4  cha l [ o (0projectinfixoffsetProjectInfixOffset m 4  cha m o 0 firstline FirstLine o 0 projectstring ProjectString r l c n 2  cwor o 0 topicstring TopicString m  ctxt  o 0 topicstring TopicString r l c n 2  cwor o 0 projectstring ProjectString m  ctxt o 0 projectstring ProjectString r m  boovfals o 0 contextstring ContextString ? o (0contextinfixoffsetContextInfixOffset m k  Z ? o (0contextinfixoffsetContextInfixOffset m r n 7  ctxt 4  cha m 4  cha l \ o (0contextinfixoffsetContextInfixOffset m o 0 firstline FirstLine o 0 topicstring TopicString r  n    7    ctxt  4  cha  l [ o (0contextinfixoffsetContextInfixOffset m  4   cha m  o 0 firstline FirstLine o 0 contextstring ContextString r  l  c  n  2  cwor o  0 topicstring TopicString m  ctxt o 0 topicstring TopicString r l c !  n"# "2  cwor #o 0 contextstring ContextString !m  ctxt o 0 contextstring ContextString$ $r %& %m  boovfals &o 0 projectstring ProjectString l#2'() 'k#2**+, +r#&-. -m#$  boovfals .o ,0shoudlresettodotopicShoudlResetTodoTopic,/0 /r'*12 1o'( 0 firstline FirstLine 2o 0 topicstring TopicString034 3r+.56 5m+,  boovfals 6o 0 contextstring ContextString47 7r/289 8m/0  boovfals 9o 0 projectstring ProjectString ( have only task topic)::* have only task topic ;< ;r3:=> =o34 0 olddelims OldDelims >149  txdl<?@ ?l;;@AB Al;;CD CGA identify project and context, creating new project if necessary DEE identify project and context, creating new project if necessary BFG Fl;;GHI Hr;BJK Jm;>  null Ko 0 thisproject ThisProjectILM LrCJNO NmCF  null Oo 0 thiscontext ThisContextMPQ PlKKQRS ROKTU TOQVW VkWXXYZ YlWWZ[\ [ZWx]^ ]FWl_` _FWdab alWZc c=WZde doWX 0 projectstring ProjectString emXY  boovfals bl]bf f>]bgh go]^ 0 someproject SomeProject hm^aiijj `lgjk k>gjlm logh 0 someproject SomeProject mmhi  msng ^rotno noop 0 someproject SomeProject oo 0 thisproject ThisProject\pq plyyqrs rZytuv t=y|wx woyz 0 projectstring ProjectString xoz{ 0newprojectflagNewProjectFlag ulyz{ yr|} |l~ ~I .corecrel****null m  FCpr  prdt K  pnam o 0 topicstring TopicString }o 0 thisproject ThisProject z" new project, chosen by user{8 new project, chosen by userv > o 0 projectstring ProjectString m  boovfals l k r m  null o 0myprojectarrayMyProjectArray O r I .OFOCFCCmFCCM@TEXT o 0 projectstring ProjectString  kocl m  FCpr  FCmm m o 0myprojectarrayMyProjectArray o 0mydocMyDoc Q k r n 1  ID n 4  cobj m o 0myprojectarrayMyProjectArray o 0 myprojectid MyProjectID r 5  FCpr o 0 myprojectid MyProjectID  kfrmID o 0 thisproject ThisProject R~}| ~.ascrerr ********}| r l{z Iy y.corecrel****null mx x FCprwv w prdt Kut u pnam os s0 projectstring ProjectStringtv{z or r0 thisproject ThisProject )# had a possible good parsed ProjectF had a possible good parsed Projects lqpoqpo lnmlnml lkk  confirm good context, filling it out if there is no full match and only a partial match, setting to false if not even a partial  confirm good context, filling it out if there is no full match and only a partial match, setting to false if not even a partial  ljj & no parsed context, try fallback@ no parsed context, try fallback Z&ih F F lgf = oe e0 contextstring ContextString md d boovfalsgf l cb >  o  a a0 somecontext SomeContext m cb l`_ > o^ ^0 somecontext SomeContext m] ] msng`_ r" o\ \0 somecontext SomeContext o[ [0 thiscontext ThisContextih l''ZYXZYXW Z'VU >'* o'(T T0 contextstring ContextString m()S S boovfals l- k- r-4 m-0R R null oQ Q 0mycontextarrayMyContextArrayP O5 k; r;P I;LO O.OFOCFCCmFCCM@TEXT o;>ED k]} r]m n]i 1ei= = ID n]e 4`e< < cobj  mcd;; o]`: : 0mycontextarrayMyContextArray o9 90 mycontextid MyContextID 8  rn}   5ny7 6 7 FCct  oru5 50 mycontextid MyContextID 6 kfrmID  o4 40 thiscontext ThisContext8F r l32 I1 1.corecrel****null m0 0 FCct/. / prdt K-, - pnam o+ +0 contextstring ContextString,.32 o* *0 thiscontext ThisContextG o58) )0mydocMyDocP *$ had a possible good parsed context H had a possible good parsed context VUW WoQT( (0mydocMyDoc UmKNOFOCalisX Macintosh HDyH+ OmniFocus.app(I Applications:JU'Macintosh HD:Applications:OmniFocus.app OmniFocus.app Macintosh HDApplications/OmniFocus.app/S l'&%'&% r K$ $0 tasktopic TaskTopic o# #0 topicstring TopicString "!" "0 taskproject taskProject !o! !0 thisproject ThisProject" #$ 0 taskcontext TaskContext #o 0 thiscontext ThisContext$%  0resettodotopicResetTodoTopic %o ,0shoudlresettodotopicShoudlResetTodoTopic o 0 returnvalues ReturnValues&' &L( (o 0 returnvalues ReturnValues') )l*+,-.* .DAEDopnt****utxt 80handleentouragepushtofocusHandleEntouragePushToFocus ,0makenewomnifocustaskMakeNewOmnifocusTask &0parseincomingtaskParseIncomingTask+/0 .DAEDopnt****utxt 0 thisclipping ThisClipping/ 0 thisclipping ThisClipping0 80handleentouragepushtofocusHandleEntouragePushToFocus )k+, & 12 80handleentouragepushtofocusHandleEntouragePushToFocus 33  0incomingstringIncomingString1   0incomingstringIncomingString $0selectedmessagesselectedMessages 0 themessage theMessage 0thenametheName 0 thesender theSender 0thetitletheTitle 0 thecontent theContent 0theidtheID 0 thecommand theCommand ,0thepathtomessagefilethePathToMessageFile 0 parseresults ParseResults 0 theproject theProject 0 thecontext theContext27~  FCDo 0mydocMyDoc  CMgs  kocl  cobj .corecnte********  subj  sndr  dspn  ctnt  ID  TEXT .sysoexecTEXTTEXT  cpar 0 stringtoparse StringToParse "0fallbackprojectFallbackProject "0fallbackcontextFallbackContext &0parseincomingtaskParseIncomingTask 0 taskproject taskProject 0 taskcontext TaskContext ,0makenewomnifocustaskMakeNewOmnifocusTask*,EUO*,EOjvhYhO[l kh,EO,,EO%%EO,EO,&EO%EOj a-k/EO)aaaaaa EOa,EOa,EO)a+OP[OYU-45 ,0makenewomnifocustaskMakeNewOmnifocusTask66 0 newtasktitle NewTaskTitle 0newtaskcontentNewTaskContent 0newtaskcontextNewTaskContext 0newtaskprojectNewtaskProject 60newtaskattachmentfilenameNewTaskAttachmentFileName4 0 newtasktitle NewTaskTitle 0newtaskcontentNewTaskContent 0newtaskcontextNewTaskContext 0newtaskprojectNewtaskProject 60newtaskattachmentfilenameNewTaskAttachmentFileName 0newtaskNewTask5~  FCDo  null  bool  kocl  FCit  prdt  pnam  FCno .corecrel****null  FCac  FCct  OSfA  atfn  OSin .OFOCFC>