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: rycardo on Oct 13, '09 07:57:56AM
You can also:

...{trigger interval:-(10*days)}

days, hours, and minutes all work within applescript.

HTH

[ Reply to This | # ]
Add alarms to all existing iCal birthday events
Authored by: JackSloth on Oct 13, '09 08:39:23AM
When I tried adding ...{trigger interval:-(10*days)} It made all of the alarms 300 days after the event. When I look in the iCal Applescript dictionary it says
display alarmn : This class represents a message alarm.
ELEMENTS
contained by todos, events.

PROPERTIES
trigger interval (integer) : The interval in minutes between the event and the alarm: (positive for alarm that trigger after the event date or negative for alarms that trigger before).

trigger date (date) : An absolute alarm date.


[ Reply to This | # ]
Add alarms to all existing iCal birthday events
Authored by: gopes on Oct 13, '09 12:07:59PM
From the hint: "The trigger interval parameter is in minutes; there are 1440 minutes in a day, so -14400 means 10 days before the event. " So, you can't just do "10 * days", because that actually gives you the total number of seconds in 10 days, 864000. Divide that number by 60 to obtain minutes, which is 14400. So, instead of {trigger interval:-(10*days)}, it should be {trigger interval:-((10*days) / (1 * minutes))}. Instead of "(1 * minutes)" you can just put 60, but the long way is more syntax illustrative.

[ Reply to This | # ]
Add alarms to all existing iCal birthday events
Authored by: rycardo on Oct 13, '09 06:00:21PM

hey gopes,

good catch!

that's strange that it's in minutes, most time values are in seconds in my experience.

peace



[ Reply to This | # ]
Add alarms to all existing iCal birthday events
Authored by: gopes on Oct 13, '09 07:26:20PM

"that's strange that it's in minutes, most time values are in seconds in my experience."

I agree, at first glance; the only thing I can think of is that iCal itself doesn't offer seconds--the options are only as finely grained as minutes in the GUI. (Not that the GUI necessarily restricts other interfaces.)



[ Reply to This | # ]