Re: tell block targets
Re: tell block targets
- Subject: Re: tell block targets
- From: Shane Stanley <email@hidden>
- Date: Sun, 04 Dec 2011 14:14:56 +1100
On 04/12/2011, at 1:52 PM, Alex Zavatone wrote:
> Almost.
>
> In the first, the context is set to the "Finder" and the it is asked to process the instruction.
> It then returns from that and again, the context is set to the "Finder" and the it is asked to process the next instruction.
>
> In the second, the context is set to the "Finder" and it is asked to process both instructions, then it returns and the context returns to the current script.
>
> Am I right?
Not really. In the first, an Apple event is dispatched to the Finder, a result comes back, a second event is sent, and a second result comes back. In the second, an Apple event is dispatched to the Finder, a result comes back, a second event is sent, and a second result comes back. How AS does this internally, who knows -- but it's the event stuff that matters.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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