Skip to content

Instantly share code, notes, and snippets.

@macolyte
Created November 25, 2012 15:17
Show Gist options
  • Save macolyte/4143930 to your computer and use it in GitHub Desktop.
Save macolyte/4143930 to your computer and use it in GitHub Desktop.
if [ $# -lt 1 ]; then
echo "No items to add"
else
osascript - "$@" <<END
on run argv
repeat with i from 1 to (count of argv)
try
tell application "Reminders"
tell list "Shared"
make new reminder with properties {name: (item i of argv)}
end tell
quit
end tell
on error
end try
end repeat
end run
END
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment