Created
September 17, 2010 03:35
-
-
Save joet3ch/583623 to your computer and use it in GitHub Desktop.
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