Thread: due date format
View Single Post
I want to write a script like this:
PHP Code:
tell application "OmniFocus"
    
tell default document
        set Val1 to 
"foo"
        
make new inbox task with properties {name:Val1due date:"1d"}
        
make new inbox task with properties {name:Val1due date:"3d"}
        
make new inbox task with properties {name:Val1due date:"7d"}
    
end tell
end tell 
but, I got error: "error "OmniFocus got an error: Can’t make \"1d\" into type date, missing value." number -1700 from "1d"".

I need help...