Skip to content

Instantly share code, notes, and snippets.

@joet3ch
Created September 17, 2010 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joet3ch/583623 to your computer and use it in GitHub Desktop.
Save joet3ch/583623 to your computer and use it in GitHub Desktop.
#!/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