Skip to content

Instantly share code, notes, and snippets.

@kmikael
Created July 29, 2012 10:16
Show Gist options
  • 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
@sindresorhus
Copy link

-> make new note with properties {name:q, body:q}

This will make it show the text as title too, instead of New Note

@kmikael
Copy link
Author

kmikael commented Jul 30, 2012

I had tried that yesterday and had gotten mixed results: it didn't work sometimes. But I tried it again after your suggestion and it seems to work. Thanks.

@alvarezramos
Copy link

it dosent work... dosent create any new notes... why? think i did wright, its easy to add extensions to alfred.. please help.. thnxx

@ZakGottlieb
Copy link

Hi there - great extensions, thanks very much for making them! Two quick q's for you:

  1. With reminders, is it possible to set any properties, e.g. Time, date etc? I'm assuming it must be - might be worth adding to instructions, above? :)
  2. With notes extension, is it possible to separate by lines, or does it just enter whatever you write after "note" as a single line?

Thanks again,

Zak

@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