The question title says it all. I'm basically trying to set the due date of an already created reminder using AppleScript (see the post I created here for more background). I can currently make a new reminder with a due date using the AppleScript code:
tell application "System Events" to set FrontAppName to name of first process where frontmost is true
if FrontAppName is "Reminders" then
tell application "Reminders"
set duedate to (current date) + (2 * days)
make new reminder with properties {name:"New Reminder", due date:duedate}
end tell
else
display dialog "failed to make new reminder!"
end if
But have no clue how to set newReminder to "current reminder." Any ideas? All I have so far for the code is:
tell application "System Events" to set FrontAppName to name of first process where frontmost is true
if FrontAppName is "Reminders" then
tell application "Reminders"
set currentReminder to current reminder
set due date of currentReminder to current date
end tell
else
display dialog "failed to make new reminder!"
end if
Adding a due date (not remind me date) has been a feature requested for a while in the OS X community that I'd like to make a reasonable workaround for. Currently it's not straightforward to set it, no clue why. See forum posts such as: https://discussions.apple.com/thread/4142949?start=0&tstart=0 https://discussions.apple.com/message/24428695#24428695
Any help is much appreciated.