-
-
Save palladius/1460304 to your computer and use it in GitHub Desktop.
MacOSX osascript to tell you what time is it
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
#!/bin/bash | |
DEFAULT_ALARM='current date' | |
alarm=$DEFAULT_ALARM | |
foo=`osascript <<EOF | |
tell application "iCal" | |
set newtodo to (make new todo at end of todos of calendar "Home") | |
tell newtodo | |
set summary to "Bills" | |
set due date to ($alarm) | |
end tell | |
end tell | |
tell application "iCal" | |
set newtodo to (make new todo at end of todos of calendar "Home") | |
tell newtodo | |
set summary to "Scans" | |
set due date to ($alarm) | |
end tell | |
end tell | |
EOF` | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment