PDA

View Full Version : AppleScript Sample Code?


jasonb
2008-05-27, 09:59 PM
Hello All,
Does anyone have sample code that would allow me to iterate through all the tasks that I have stored in OmniFocus? I would like to write some code that checks to see if a task is due today, and flags the item. This combined with launchd would let me approximate a "Do Today" list based on flagged items.

Thanks,
Jason

RobTrew
2008-05-27, 11:58 PM
You should be able to adapt the logic of this posting (http://forums.omnigroup.com/showpost.php?p=21656&postcount=5)

jasonb
2008-05-31, 10:17 AM
The code that I created is attached. This combined with a launchd script created with Lingon, allows me to toggle the flagged status of items due soon. This allows me to create on master "Do Today" perspective.

Please let me know if you improve upon the code, as I'm sure it is not as efficient as it could be.

Jason

nanovation
2008-08-09, 10:01 PM
This is great. Thanks Jason. I'll play around with it and post any improvements I make.

nanovation
2008-08-11, 10:04 PM
Just wanted to let you know it worked perfectly for me. Thanks :)