0

Maybe someone can explain why is that like this and how to speed things up

# this is for some reason is pretty slow and takes >=11s to execute
osascript << EOF
    tell app "Reminders"
        set rem to make new reminder in default list with properties {name:"$name", body:"$link"}
        set allday due date of rem to (current date) # without this script executes almost immediately
    end tell
EOF

1 Answer 1

0

The (current date) command is not a Reminders.app command. It's a Standard Additions command.

Try this...

osascript << EOF
set theDate to (current date)
tell application "Reminders"
    set rem to make new reminder in default list with properties {name:"$name", body:"$link"}
    set allday due date of rem to theDate
end tell
EOF
1
  • that doesn't help, I get the same results :c Jun 5 at 15:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .