title: How do you modify a selected reminder in the Reminders app in OS X with AppleScript
body: <p>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 <a href="https://discussions.apple.com/thread/5960806" rel="nofollow">here</a> for more background). I can currently make a new reminder with a due date using the AppleScript code:</p>
  
  <pre><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
  </code></pre>
  
  <p>But have no clue how to set newReminder to "current reminder." Any ideas? All I have so far for the code is:</p>
  
  <pre><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 currentReminder to current reminder
          set due date of currentReminder to current date
      end tell
  else
      display dialog "failed to make new reminder!"
  end if
  </code></pre>
  
  <p>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:
  <a href="https://discussions.apple.com/thread/4142949?start=0&amp;tstart=0" rel="nofollow">https://discussions.apple.com/thread/4142949?start=0&amp;tstart=0</a>
  <a href="https://discussions.apple.com/message/24428695#24428695" rel="nofollow">https://discussions.apple.com/message/24428695#24428695</a></p>
  
  <p>Any help is much appreciated.</p>