Created
May 19, 2015 16:10
-
-
Save cabe56/3193304f39dbb750df7c to your computer and use it in GitHub Desktop.
Create OSX reminder from cmd line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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