The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
How to clip and parse Thread Tools Search this Thread Display Modes
I would like to write this string in a DevonThinkPro Rich Text file, send it to OmniFocus and have it parsed just as if it was an Email so that I don't have to reenter the info in the quick entry window.

--Richard>Sell@Email#thursday#friday

Is possible?

Thanks,
Mark
 
Yes, with a little help from Applescript. I've attached a script which will take the contents of the clipboard and run it through the same parsing that would happen if it came in via email. You could bind the script to a keystroke with something like FastScripts, or if you are likely to always be using one app (DTP, for example) you could put it in that app's Applescript folder so it would appear in the script menu in that application. Select your text, do command-C to copy to the clipboard, invoke the script.

Read about how to install and use Applescripts here.
Attached Files
File Type: zip Clipboard to OmniFocus tasks.scpt.zip (3.3 KB, 300 views)
 
Way cool, whpalmer4. And thanks for such a quick answer.
 
How did you know about ParseStr?
 
Quote:
Originally Posted by Mondozer View Post
How did you know about ParseStr?
I knew about it because it was my own invention :-)

It's just the variable name I chose to hold the string obtained from the clipboard, nothing special about it.

"parse tasks" is the Applescript verb that does the work. That I knew about from reading the OmniFocus Applescript dictionary in the Applescript Editor app and looking at the Applescript buried inside the OmniFocus app that gets run from Mail if you're using the email processing feature.
 
Very clever. I didn't know how to look inside the OF app and find how the Mail input was parsed. Anyway, thanks again. You saved me endless time and toil. Now I can get on with my work.

ciao,
M.
 
Applications are actually directories full of files (called packages), with a bit set that tells the Finder to put on the illusion that it is just one item. If you want to look inside one, select it, either right-click or control-click, and choose Show Package Contents from the popup menu that appears. Or you can choose Show Package Contents from the gear menu in the Finder toolbar. A new window will open showing you the contents of the package.

Some of the Omni document formats are also packages. If you might need to change only parts of a file, using a package can be much more efficient if the file is large. OmniFocus stores its database as a package consisting of 1 file containing the bulk of the data plus a small file for each additional change that hasn't been compacted into the big chunk. OmniOutliner and OmniGraffle use packages so that you can easily attach files to documents by just copying the data into the directory instead having to create an entirely new file.

It's interesting to spend some time rummaging through all of the folders in an application, seeing all the pieces that are involved makes you appreciate how much work was done on your behalf in exchange for your cash :-) The copy of OmniFocus I just checked has over 3,500 files in it! Of course, having language localizations for several languages makes that count climb rapidly.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse tasks with transport text... t.h.x. OmniFocus Extras 2 2011-02-09 06:34 PM
Escaping special characters in parse task with transport text? jcater OmniFocus Extras 0 2008-01-17 09:10 PM
Build 96640 breaks scripts using "Parse Tasks" RobTrew OmniFocus Extras 1 2008-01-02 07:42 PM
Parse & paste Lotus Notes Doclink into OmniFocus action note WillR OmniFocus Extras 6 2007-12-10 01:18 PM
Parse PDF? ToddS OmniGraffle General 5 2007-02-17 12:15 AM


All times are GMT -8. The time now is 12:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.