omnifocus-3-applescript-guide icon indicating copy to clipboard operation
omnifocus-3-applescript-guide copied to clipboard

How to add a task to a specific project without creating the project in the Script?

Open daviddias opened this issue 5 years ago • 1 comments

I want to create a bunch of tasks and add directly them into a project. What is the right way to do it?

daviddias avatar Jan 20 '19 07:01 daviddias

@daviddias This works:

tell application "OmniFocus"
	tell default document
		set theProject to first flattened project where its name = "Project Name"
		make new inbox task with properties {name:"Task Name", note:"Task Note", assigned container:theProject}
	end tell
end tell

JonLaliberte avatar Nov 27 '19 16:11 JonLaliberte