OmniFocus 3 AppleScript Guide


#1

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.


#2

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.


#3

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


#4

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


#5

Great work! Thanks!


#6

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 😓


#7
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

#8

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