Skip to content

Instantly share code, notes, and snippets.

@kmikael
Created July 29, 2012 10:16
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmikael/3197266 to your computer and use it in GitHub Desktop.
Save kmikael/3197266 to your computer and use it in GitHub Desktop.
Alfred Extensions to create new reminders or notes

Alfred Extensions to create new reminders or notes

OS X Mountain Lion ships with two new apps, Reminders and Notes, which are basically OS X counterparts of the standard iOS apps with the same names. One nice thing about these new apps is that they are scriptable.

This means that I was able to create two simple AppleScripts and thus an Alfred extensions to make a new reminder in the default list and to make a new note in the default folder.

You can view the sources of the AppleScripts below.

Examples

remind Call Mom

note University of Vienna: Universitätsring 1, 1010 Vienna

Download

Reminders

Notes

on alfred_script(q)
tell application "Notes"
tell account "iCloud"
tell folder "Notes"
make new note with properties {name:q, body:q}
end tell
end tell
end tell
end alfred_script
on alfred_script(q)
tell application "Reminders"
tell the default list
make new reminder with properties {name:q}
end tell
end tell
end alfred_script
@kmikael
Copy link
Author

kmikael commented Dec 12, 2012

Hi. I'm happy you like the extensions.

  1. It is theoretically possible to add more properties to the reminders, but it would require a much larger script. Since Alfred extensions take one line. There would need to be a parser and a standard format for entering information etc. It gets ugly pretty fast and I kept things simple.
  2. It just enters whatever you write after "note" as a single line. I usually enter "note my_title" and then enter the rest in the app itself. Again, keeping things simple. ;)

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