dopaex.blogg.se

Omnifocus applescript
Omnifocus applescript








omnifocus applescript

Important difference for me is that the task is sent straight to the Then I defined a new send-region-to-omnifocus function. ( let (( result "" ) ( start 0 ) end ) ( save-match-data ( if ( or ( null ( string-match "" argument )) ( < ( match-end 0 ) ( length argument ))) ( while ( string-match "" argument start ) ( setq end ( match-beginning 0 ) result ( concat result ( substring argument start end ) " \\ " ( substring argument end ( 1 + end ))) start ( 1 + end )))) ( concat " \" " result ( substring argument start ) " \" " ))))) Of very minor modifications): ( defun applescript-quote-string ( argument ) "Quote a string for passing as a string to AppleScript." ( if ( or ( not argument ) ( string-equal argument "" )) " \"\" " Quote using double quotes, but escape any existing quotes or backslashes in the argument with backslashes. The communication between Emacs and OmniFocus needs to happen usingĪppleScript, so I first borrowed Ken’s applescript-quote-stringįunction for properly escaping strings in AppleScript (with a couple My taste, so I decided to write a different function based on Ken’s To trigger the quick entry keyboard shortcut to save the task to the The region to OmniFocus’s quick entry window, but then you still have Omnifocus-capture.el by Ken Case defines a function which sends Solutions to work or wished they worked differently.

omnifocus applescript

However, I either had some trouble getting the previous Out this problem has been solved at least three timesīefore. Use it to create a new task in OmniFocus? I thought so, and it turns Wouldn’t it be great if you could take the current region in Emacs and










Omnifocus applescript