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: 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 | # ]