FasdUAS 1.101.10 k l l  93 Activate, Relocate New Template Script Properties    f Activate, Relocate New Template Script Properties  j 60locationplaceholderopenerlocationPlaceholderOpener m{  j 60locationplaceholdercloserlocationPlaceholderCloser m} l l^ O^ O] k \ ! O "# "l$%& $r'( 'n)* )2  OTst *1  FCSt (o $0theselecteditemstheSelectedItems %/) (first document window whose index is 1)&++R (first document window whose index is 1) #4 ,  FCdw ,m !-. -l./0 /r12 1J 2o 0 projectlist projectList034 3Y ?567 5r.:89 8b.8:; :o./ 0 projectlist projectList ;J/7<<= =l/5> >n/5?@ ?135  valL @l/3A An/3BC B403D  cobj Do12 0i Co/0 $0theselecteditemstheSelectedItems 9o 0 projectlist projectList 0i 6m#$ 7l$)E EI$)F .corecnte******** Fo$% $0theselecteditemstheSelectedItems4GH Gl@@HI IY@\JKL JnNWMN MIOWO 0move_new_templateOP PnOSQR Q4PSS  cobj SoQR 0i RoOP 0 projectlist projectList NfNO 0i KmCD LlDIT TIDIU .corecnte******** UoDE 0 projectlist projectList 4V  docu Vm mWWOFOCalis:HD~(H+ 2 OmniFocus.appaè Applications~nèh 2HD:Applications:OmniFocus.app OmniFocus.appHDApplications/OmniFocus.app/XY XlYZ[ Zl[\] \l^_ ^ Begin Subroutines _``( Begin Subroutines ]ab ai cd cIe 0move_new_templateef fo 0 newtemplate newTemplate dO0gh gO/ij ik .kklm lr no nn pq p1   FCno qo 0 newtemplate newTemplate oo 0notestrnoteStrmrs rltu t+%return count of paragraphs of noteStruvvJreturn count of paragraphs of noteStrswx wQ3yz{ yk%||}~ }l~ r n 4  cpar m o 0notestrnoteStr o 0notestrnoteStr r# n! I! %0!parse_location_placeholder_string o 0notestrnoteStr f o 0treepathtreePath l$$ zR .ascrerr ******** o 0errmsgerrMsg {k-3 r-1 J-/ o 0treepathtreePath l22x l44 Z4 l4; >4; l49 I49 .corecnte******** o45 0treepathtreePath m9: Q> ZAz =AL lAJ IAJ .corecnte******** nAF 2DF  cpar lAD nAD 1BD  FCno oAB 0 newtemplate newTemplate mJK rOT mOP l n 1QS  FCno oPQ 0 newtemplate newTemplate kWz rWh lWf~ cWf nWd 7Zd} } cpar m^`|| mac{{ lWZzy nWZ 1XZx x FCno oWXw w0 newtemplate newTemplatezy mdev v ctxt~ ou u0 noteleftovers noteLeftovers liitt -'take off excess leftover paragraph markNtake off excess leftover paragraph marks riz civ litrq nit 7jtp p cha mnpoo mqsnn oijm m0 noteleftovers noteLeftoversrq mtul l ctxt n 1wyk k FCno ovwj j0 newtemplate newTemplates Rih i.ascrerr ******** og g0errmsgerrMsgh lff '!set note of newTemplate to errMsgBset note of newTemplate to errMsg led = lcb Ia` a.corecnte******** o_ _0treepathtreePath`cb m^^ed] Q k l\[Z\[Z r n 4Y Y cpar mXX n 1W W FCno oV V0 newtemplate newTemplate oU U0notestrnoteStr lTSRTSR r n IQP Q%0!parse_location_placeholder_stringO oN N0notestrnoteStrOP f oM M0treepathtreePath ZLK lJI > lHG IFE F.corecnte******** oD D0treepathtreePathEHG mCCJI Q r   l BA  n   7@ @ cpar m?? m>>  n 1= = FCno o< <0 newtemplate newTemplateBA  o; ;0 notesnippet noteSnippet R:98 :.ascrerr ********98 r m o7 70 notesnippet noteSnippetLK r c l65 b J 4  o3 30 notesnippet noteSnippet4 l!21 !n"# "40$ 0 cpar $m// #n%& %1. . FCno &o- -0 newtemplate newTemplate2165 m, , ctxt n'( '1+ + FCno (o* *0 newtemplate newTemplate)) )l(*+( * return note of newTemplate+,,4return note of newTemplate) R'-& '.ascrerr ******** -o% %0errmsgerrMsg& k../0 /r12 1J$$ 2o# #0treepathtreePath03" 3L4 4o! !0errmsgerrMsg"]56 5l  67 7Z.89 8l: :>;< ;l= =I> .corecnte******** >o 0treepathtreePath <m 9k*??@A @rBC BnDE D4F  cobj Fm Eo 0treepathtreePath Co 0treepathtreePathAGH GrIJ InKL KI M 0get_specified_treeMN No  0treepathtreePath  Lf Jo 0 foundpath foundPathHOP Ol  PQ QZ*RST R>UV Uo 0 foundpath foundPath Vm  boovfals Sr WX WnYZ YI[ 0move_to_section[\] \o 0treepathtreePath]^ ^o 0 newtemplate newTemplate Zf Xo 0 movedtemplate movedTemplate TI#*_ .sysodlogaskrTEXT _m#&``aaThe location path you provided is not valid. The template was left at the bottom of the end of the project listing. j4b  docu bm hmccOFOCalis:HD~(H+ 2 OmniFocus.appaè Applications~nèh 2HD:Applications:OmniFocus.app OmniFocus.appHDApplications/OmniFocus.app/bde dlefg fi hi hIj %0!parse_location_placeholder_stringjk ko 0 thestring theString ik5llmn mrop onqr q1  txdl r1  ascr po 0olddelimoldDelimnst sruv uo 60locationplaceholderopenerlocationPlaceholderOpener vnwx w1   txdl x1  ascrtyz yr{| {n}~ }1  rest ~n 2  citm o 0 thestring theString |o 0 firstparse firstParsez r! o 60locationplaceholdercloserlocationPlaceholderCloser n 1  txdl 1  ascr r", I"* &0cleanplaceholderscleanPlaceholders o#$ 0 firstparse firstParse J$& o 0 theresult theResult r-2 o-. 0olddelimoldDelim n 1/1  txdl 1./  ascr L35 o34 0 theresult theResultg l i I 0move_to_section o 0treepathtreePath o 0 newtemplate newTemplate O k O k  r  n  I  0get_path_parts o 0treepathtreePath f o 0 treepathparts treePathParts l QL kB I/ .coremovenullobj o 0 newtemplate newTemplate  insh n+ 9)+  insl l) 6) 4  FCSX m =( 1!  pnam l"' n"' 4$'  cobj m%& o"$ 0 treepathparts treePathParts r0B l0@ 60@ 404  FCSX m23 =5? 168  pnam l9> n9> 4;>  cobj m<= o9; 0 treepathparts treePathParts o 0currentsectioncurrentSection R .ascrerr ******** LJL mJK  boovfals YM Q[ k^ I^v .coremovenullobj o^_ 0 newtemplate newTemplate  insh n`r 9pr  insl l`p 6`p n`d 4ad  FCSX mbc o`a 0currentsectioncurrentSection =eo 1fh  pnam lin nin 4kn  cobj olm 0i oik 0 treepathparts treePathParts rw lw 6w nw{ 4x{  FCSX myz owx 0currentsectioncurrentSection =| 1}  pnam l n 4  cobj o 0i o 0 treepathparts treePathParts o 0currentsectioncurrentSection R .ascrerr ******** o 0errmsgerrMsg k L m  boovfals l    2, The one of the folders named does not exist   X The one of the folders named does not exist 0i mPQ IQV .corecnte********  oQR 0 treepathparts treePathParts  I .coremovenullobj o 0 newtemplate newTemplate~} ~ insh n 9| | insl l{z n 4y y FCSX mxx ow w 0currentsectioncurrentSection{z} 4v v docu muut L os s 0currentsectioncurrentSectiont mOFOCalis:HD~(H+ 2 OmniFocus.appaè Applications~nèh 2HD:Applications:OmniFocus.app OmniFocus.appHDApplications/OmniFocus.app/ lrqprqp i Io!n o0get_specified_tree!"m "ol l0treepathtreePathmn  Og#$ #kf%%&' &Oc() (O b*+ *ka,,-. -r#/0 /6!12 1n34 34k5 k OTtr 5mjj 41i i FCSt 2= 67 61h h pnam 7m8899Library 0og g0 currenttree currentTree.:; :l$$fedfed;<= <r$,>? >n$*@A @I%*cBb c0get_path_partsBCa Co%&` `0treepathtreePathab Af$% ?o_ _0 treepathparts treePathParts=DE Dl--^]\^]\EF[ FY-aGZHIY GQ;\JKL Jr>PMN Ml>NOXW O6>NPQ Pn>BRS R4?BVT V OTtr Tm@AUU So>?T T0 currenttree currentTree Q=CMUV U1DFS S pnam VlGLWRQ WnGLXY X4ILPZ P cobj ZoJKO O0i YoGIN N0 treepathparts treePathPartsRQXW NoM M0 currenttree currentTree KRL[K L.ascrerr ******** [oJ J0errmsgerrMsgK LkX\\\]^ ]LXZ_ _mXYI I boovfals^`H `l[[GabG a2, The one of the folders named does not existbccX The one of the folders named does not existH Z0i Hm01FF II16EdD E.corecnte******** do12C C0 treepathparts treePathPartsDY[ +4 Be B FCdw em AA )4@f @ docu fm??'g> gLdfh hode= =0 currenttree currentTree> $miiOFOCalis:HD~(H+ 2 OmniFocus.appaè Applications~nèh 2HD:Applications:OmniFocus.app OmniFocus.appHDApplications/OmniFocus.app/jk jl<;:<;:klm ll9no9 nSM assumes that AppleScript's text item delimiters is set to placeholderCloser opp assumes that AppleScript's text item delimiters is set to placeholderCloser mqr qist sI8u7 8&0cleanplaceholderscleanPlaceholdersuvw vo6 60thelisttheListwx5 xo4 4 0accum57 tk;yyz{ zZ |}32 |l~10 ~= o/ /0thelisttheList J..10 }L  o- - 0accum32{ r n 4, , cobj m++ o* *0thelisttheList o) )0 firstitem firstItem r n 4( ( citm m'' o& &0 firstitem firstItem o% %0 firstitem firstItem Z0$# l%"! >% l#  I# .corecnte******** n 2  cha o 0 firstitem firstItem  m#$"! r(, o() 0 firstitem firstItem n ;*+ o)*  0accum$# L1; I1: &0cleanplaceholderscleanPlaceholders n25 135  rest o23 0thelisttheList o56  0accumr l i I  0get_path_parts o 0treepathtreePath  k/ r  n I  0explode m: o 0treepathtreePath m  boovfals f o 0 pathparts pathParts Y , r' n" I" 0trim n 4  cobj o 0i o 0 pathparts pathParts f n 4#&  cobj o$% 0i o"# 0 pathparts pathParts 0i m l I .corecnte******** o 0 pathparts pathParts L-/ o-. 0 pathparts pathParts l i! I 0explode o 0 delimiter o 0sometextsomeText o 0limit k l JD by Bruce Phillips http://bbs.applescript.net/viewtopic.php?id=18377 by Bruce Phillips http://bbs.applescript.net/viewtopic.php?id=18377 r c o 0limit m  long o 0limit r  n  1  txdl 1  ascr o 0prevtidsprevTIDs r  o 0 delimiter n 1  txdl 1   ascr r n 2  citm o 0sometextsomeText o 0output l Zv B o 0limit m QF Z!:   A!$   o!" 0limit  m"#  r'6   n'4 7(4  cobj m,. l/3 \/3 o01 0limit m12 o'( 0output o 0output R .ascrerr ******** rBF JBD o 0output AIR oIJ 0limit lJQ \JQ lJO IJO .corecnte********  oJK 0output mOP! !rUr"# "bUp$% $lU`& &nU`'( '7V`)*  cobj )mZ\ *o]_ 0limit (oUV 0output %l `o+ +l`o, ,b`o-. -m`a//00 .nan12 17bn34  cobj 3lfj5 5[fj67 6ogh 0limit 7mhi 4mkm 2oab 0output #o 0output89 8lww9:; :rw|<= <owx 0prevtidsprevTIDs =n>? >1y{  txdl ?1xy  ascr;@A @l}}AB BL}C Co}~ 0outputDE DlEFG Fi"%HI HIJ 0trimJK Ko 0s IkSLLMN MlOP O_Yby John Delacour http://lists.apple.com/archives/applescript-users/2002/Aug/msg00161.htmlPQQby John Delacour http://lists.apple.com/archives/applescript-users/2002/Aug/msg00161.htmlNRS RlSTU TrVW VJXXY Y1  spac WnZ[ Z1  txdl [1  ascrU\] \r ^_ ^n `a `2  citm ao 0s _o 0l]bc brde dJffg gmhhii enjk j1  txdl k1  ascrclm llmno nlpq pD> Prepend a space to every non-blank text item except the firstqrr| Prepend a space to every non-blank text item except the firstost sruv um  boovfals vo 0startedtwx wXNyz yZ*I{| {?*1}~ }l*/~} I*/|{ |.corecnte******** o*+z z0thisitemthisItem{~} ~m/0yy |Z4Ex o45w w 0started r8? l8;vu b8; 189t t spac o9:s s0thisitemthisItemvu n 1<>r r pcnt o;= @0move_new_template?<<; ;0 newtemplate newTemplate>:9876543 :0 newtemplate newTemplate 90notestrnoteStr 80treepathtreePath 70errmsgerrMsg 60 noteleftovers noteLeftovers 50 notesnippet noteSnippet 40 foundpath foundPath 30 movedtemplate movedTemplatec210/.-,+*)('&%$`# 2 docu 1 FCno 0 cpar /%0!parse_location_placeholder_string .0errmsgerrMsg- ,.corecnte********+ * ctxt ) cha (' & cobj %0get_specified_tree $0move_to_section #.sysodlogaskrTEXT=1-*k/%,EOi/EO)k+EOPW XjvEOPOj jJ>,-j k ,FY%,[\[Zk\Z2&EO[\[Zk\Z2&,FWXhYrj jgU,/EO)k+EOj j",[\[Zk\Z2EW X EYhOkv,i/%&,FOPWXjvEOYhOj j.k/EO)k+EOf)l+EY aj YhUU"i!  "%0!parse_location_placeholder_string! 0 thestring theString  0 thestring theString 0olddelimoldDelim 0 firstparse firstParse 0 theresult theResult  ascr  txdl  citm  rest &0cleanplaceholderscleanPlaceholders6,EOb,FO-,EOb,FO*jvl+EO,FO 0move_to_section 0treepathtreePath 0 newtemplate newTemplate  0treepathtreePath 0 newtemplate newTemplate 0 treepathparts treePathParts 0currentsectioncurrentSection 0i 0errmsgerrMsg  docu 0get_path_parts  insh  FCSX  pnam  cobj  insl .coremovenullobj  .corecnte******** 0errmsgerrMsg*k/)k+EO0*k/[,\Zk/814l O*k/[,\Zk/81EW X fOLlj kh0k/[,\Z/814l Ok/[,\Z/81EW X fOP[OYOi/4l UOU  0get_specified_tree 0treepathtreePath 0treepathtreePath 0 currenttree currentTree 0 treepathparts treePathParts 0i 0errmsgerrMsg i8  docu  FCdw  FCSt  OTtr  pnam 0get_path_parts .corecnte********  cobj 0errmsgerrMsghd*k/Y*k/Q*,k/[,\Z81EO)k+EO3kj khk/[,\Z/81EW X fOP[OYUUOUt &0cleanplaceholderscleanPlaceholders 0thelisttheList 0accum 0thelisttheList 0accum 0 firstitem firstItem  cobj  citm  cha .corecnte********  rest &0cleanplaceholderscleanPlaceholders