Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Add alarms to all existing iCal birthday events' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add alarms to all existing iCal birthday events
Authored by: Raminger on Oct 13, '09 09:56:18AM

How can I set 2 alarms, say one 10 days ahead not to forget to send a card and one at the birthday at 10 o clock, so I don't forget to call?



[ Reply to This | # ]
Add alarms to all existing iCal birthday events
Authored by: jdfrankl on Oct 13, '09 11:27:12AM
Just add more "make new xxxx alarm" lines to the script with the desired alarm type and interval. This example creates a display alarm 10 days before at 8 AM, a display alarm with sound the day before at 8 AM and a display alarm with sound the day of at 8 AM.
tell application "iCal"
	tell calendar "Birthdays"
		set all_events to every event
		repeat with this_event in all_events
			tell this_event
				delete every display alarm
				delete every sound alarm
				make new display alarm at end with properties {trigger interval:-13920}
				make new sound alarm at end with properties {trigger interval:-960}
				make new sound alarm at end with properties {trigger interval:480}
			end tell
		end repeat
	end tell
end tell


[ Reply to This | # ]