Re: iCal alarm scripts
Re: iCal alarm scripts
Or, you could make a new copy of the script for each event that might call it. So if the event Wife's birthday calls the script WifesBirthday, it's much easier to figure out what event called the script.
If you have multiple wives, their birthday iCal events could each call the same script, but it would be pretty simple for the script to find out which wife had a birthday.
HTH
ES
On Jan 11, 2010, at 5:43pm, Bruce Horrocks wrote:
> On 11/01/2010 19:30, Nigel Garvey wrote:
> [snip]
>> An alternative which _might_ be a bit faster would be to ask iCal for
>> the 'open file alarms of events of calendars whose filepath is [URL of
>> the script file]'. This returns an AppleScript list of lists of lists,
>> the innermost lists of which contain either nothing or just the alarms
>> which trigger the script. Iterating through the lists should be faster
>> than iterating through the application and only the presented alarms
>> need be checked. The relevant calendars and events can be referenced
>> through the index values of the loop variables. As with Paul's outline,
>> this does _not_ work with repeated events.
> [script snipped]
>
> Many thanks to Nigel and those others who replied. Unfortunately it is repeating events that I particularly need to use this on.
>
> Best option that I can find from scouring the Internet is set an email alarm, email the event to myself (which includes the details) and then have a script process the incoming emails automatically. That's all a bit too hideous and error prone to contemplate, really.
>
> Regards,
> --
> Bruce Horrocks
> Surrey
> England
> (bruce at scorecrow dot com)
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden