Re: iCal alarm scripts
Re: iCal alarm scripts
- Subject: Re: iCal alarm scripts
- From: "Nigel Garvey" <email@hidden>
- Date: Tue, 12 Jan 2010 12:45:17 +0000
Josh Tishhouse wrote on Mon, 11 Jan 2010 23:47:29 -0500:
>On Jan 11, 2010, at 12:33 AM, Paul Berkowitz wrote:
>
>> On 1/10/10 8:11 PM, "Josh Tishhouse" <email@hidden> wrote:
>>> set theEvent to the last event of calendar myCalendar
>>
>> The last event will be the last one *created* in that calendar, which is
>> very much *not* necessarily the one that just sent the alarm. I don't
>think
>> this will help at all. Not to mention - how do you even know which is the
>> right calendar? You'd need to check all of them.
>
>So this is worthless then?
>
>http://developer.apple.com/mac/articles/server/schedulingical.html
The AppleScript example in that article specifically looks for the most
recently created event in a calendar called "Podcasts". The script
already has a description of the event which triggered it and only has
to reference it ('last event of calendar myPCCalendar') and get the
details. It's not worthless for that purpose. But the OP in this thread
(we presume) wanted to be able to identify less specifically defined events.
The article doesn't make clear it's assuming that each podcast will go
out before the next is entered into the iCal calendar. It does give the
impression that an event which triggers a script is always last one in a
calendar. It's misleading in that respect.
NG
_______________________________________________
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