OmniFocus 3 AppleScript Guide


I’ve created a guide to using AppleScript with OmniFocus 3:

I’m sure this is incomplete, so please feel free to submit pull requests.


Obviously I’m new to AppleScript; I made this before learning that AppleScript Dictionaries are things that exist, and that all this info and more is already in the OmniFocus AppleScript Dictionary.


I would say this is a useful adjunct so thank you!


Yes, it’s useful because you included some example syntax and at any rate, I’m sure it helped you learn, too.


Great work! Thanks!


Very helpful! Thanks 😃

You go over how to create a new tag, but how do I add a already existing tag(s) to a task/project? I feel like this should be easy but I’m stuck 😓

set theTask to (first flattened task where its name is "Task Name")
set theTag to (first flattened tag where its name is "Tag Name")
add theTag to tags of theTask


Thank you! Appreciate it 😊 One other question: how do you specify a folder (or a subfolder) to put a project/task in?