Re: Receiving iCal Event information
Re: Receiving iCal Event information
- Subject: Re: Receiving iCal Event information
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 19 Dec 2004 13:01:26 -0800
Are you referring to an "Open file alarm" of an iCal event launching a
script? The script application (or any other file) so launched has no direct
knowledge of the event of the alarm which triggered it. At some deeper
(non-AppleScript) level, I suppose an AppleEvent was sent which has that
information, but there's no way for the script to find out.
Naturally if you had a particular copy or version of the script which runs
ONLY when triggered by an alarm of ONLY ONE particular event, you could make
that assumption. But that's not what you wanted to know.
--
Paul Berkowitz
> From: Matt Petrowsky <email@hidden>
> Date: Fri, 17 Dec 2004 21:24:34 -0800
> To: Applescript Users <email@hidden>
> Subject: Receiving iCal Event information
>
> Does anyone on the list, having worked with iCal, know if it's possible
> to receive parts of the event which triggered a script?
>
> I'm seeking to pull out the notes from the event which triggered the
> script. The most basic conceptual code would look like the following.
>
> Tell application "Finder"
> display dialog event notes
> End tell
>
> Obviously that doesn't work so you might expect to use something like...
>
> tell application "iCal"
> set x to description of event -1
> display dialog x
> end tell
>
> Where hopefully event -1 would be the event calling the script. But no
> go. The iCal Helper (embedded app) seems to use numbered variables
> (e.g. $1, $2, $3) in non compiled scripts to extract parts of the
> event. Do we have access to these or is it easier than it should be and
> I'm just missing it?
>
> Matt Petrowsky
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> 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:
This email sent to email@hidden