Guest User

recurring-geo-reminders

a guest
Nov 23rd, 2019
250
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on run {input, parameters}
  2.     set myList to "Reminder list name from step 1"
  3.    
  4.     try
  5.         set remName to first paragraph of (read file (input as string))
  6.     on error errmsg
  7.         display dialog errmsg giving up after 10
  8.     end try
  9.    
  10.    
  11.     tell application "Reminders"
  12.         try
  13.             repeat with theRem in (reminders in list myList whose completed is true and name is remName)
  14.                 tell theRem
  15.                     delete remind me date
  16.                     set completed to false
  17.                 end tell
  18.             end repeat
  19.         on error errmsg
  20.             display dialog errmsg buttons {"Cancel", "Continue"} default button 2 giving up after 5
  21.         end try
  22.     end tell
  23.     return remName
  24. end run
RAW Paste Data