Skip to content

Instantly share code, notes, and snippets.

@oliveratgithub
Last active February 21, 2019 10:23
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save oliveratgithub/8677064 to your computer and use it in GitHub Desktop.
Save oliveratgithub/8677064 to your computer and use it in GitHub Desktop.
Add selected Text as new Reminder in Reminders.app
on run {input, parameters}
-- This code comes from http://raduner.ch/blog/
-- To be used with an Automator Service
-- ------------------------------------------------
set inputText to input as string
tell application "Reminders"
set newremin to make new reminder
set name of newremin to inputText
end tell
return input
end run
@oliveratgithub
Copy link
Author

AppleScript massively simplified by using the Reminders.app built-in AppleScript API instead of System Events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment