Re: tell block targets
Re: tell block targets
- Subject: Re: tell block targets
- From: Alex Zavatone <email@hidden>
- Date: Sat, 03 Dec 2011 21:21:42 -0600
Well, that would depend on how the AS command router handles the dispatching.
In some cases, this context switching matters.
On Dec 3, 2011, at 9:14 PM, Shane Stanley wrote:
> 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
_______________________________________________
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