Skip to content

Instantly share code, notes, and snippets.

@cabe56
Created May 19, 2015 16:10
Show Gist options
  • Save cabe56/3193304f39dbb750df7c to your computer and use it in GitHub Desktop.
Save cabe56/3193304f39dbb750df7c to your computer and use it in GitHub Desktop.
Create OSX reminder from cmd line
function remind {
echo Example: remind \"Go to grocery store\" 12/15/2013 10:00:00PM
osascript - "$1" "$2" "$3" <<END
on run argv
set stringedAll to date (item 2 of argv & " " & item 3 of argv)
tell application "Reminders"
make new reminder with properties {name:item 1 of argv, due date:stringedAll }
end tell
end run
END
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment