Created
November 25, 2012 15:17
-
-
Save macolyte/4143930 to your computer and use it in GitHub Desktop.
This file contains 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
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