Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Possible to apply an alert to multiple existing Calendar events?

I downloaded a schedule for a sports league and imported it as it's own calendar. The events in the new calendar have no alerts. Is it possible to apply an alert or set of alerts to all the events in the calendar (without doing each one individually)?


OSX 10.8.2

Calendar v6.0

Posted on Jan 29, 2013 5:13 PM

Reply
15 replies

Jan 29, 2013 10:07 PM in response to Sean C. Carter

Hi Sean,


The script should go something like this:


tell application "Calendar"

make new display alarm at every event of calendar calendar_name with properties {trigger interval: trigger_int, trigger date: trigger_date}

end tell


In the reall world, things may not be as easy as this. You might need to use a repeat loop. Just a starter. Check out Calendar's dictionary if you can and experiment.


gl

Jan 30, 2013 6:02 PM in response to Sean C. Carter

Hi Sean,


I finally had time to work with this. The following script will add a sound allarm 1 hour before every event in a particular calendar:


tell application "Calendar"

tell calendar "MyTestCal"


repeat with this_event in every event


makenewsound alarmatthis_eventwith properties {trigger interval:-60, sound name:"Basso"}

end repeat


end tell

end tell


I didn't add any error checking, but it should work if you have a calendar with events. Remember to change the name of the calendar from "MyTestCal". The "make" command in the first script posted didn't allow for multiple events, so I had to use a "repeat" loop.



You could add this to an automator workflow, but since you only need it once, I'd save it as an application from the Script Editor. Save the application for the next time you might need it.


ps. I wish I knew how to post scripts.


gl

Possible to apply an alert to multiple existing Calendar events?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.