Apple Script Create a New Task with Set Duration

I am trying to create a duration for a task I am trying to create with AppleScript and I am not seeing a way to do this in the dictionary. I have an AppleScript that totals up the selected tasks but doesn’t create durations.

Update I just figured it out after searching for this for some time. It is “estimated minutes” and nothing not duration.

tell application “Keyboard Maestro Engine”
set pomodoroEvent to value of variable “Pom Ses App Key Int Dur Loc”
end tell

tell front document of application “OmniFocus”
set theTask to make new inbox task with properties {name:pomodoroEvent, note:“Session App”, estimated minutes:25}
end tell`

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.