Skip to content

Instantly share code, notes, and snippets.

@palladius
Forked from joet3ch/iCalAddEntry.sh
Created December 11, 2011 12:18
Show Gist options
  • Save palladius/1460304 to your computer and use it in GitHub Desktop.
Save palladius/1460304 to your computer and use it in GitHub Desktop.
MacOSX osascript to tell you what time is it
#!/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