Re: tell block targets
Re: tell block targets
- Subject: Re: tell block targets
- From: Alex Zavatone <email@hidden>
- Date: Sat, 03 Dec 2011 20:52:49 -0600
On Dec 3, 2011, at 8:43 PM, Shane Stanley wrote:
> On 03/12/2011, at 11:02 PM, Jim Brandt wrote:
>
>> Is it more efficient to do this:
>>
>> tell application "Finder" to set nm to name of file filename
>> tell application "Finder" to set cd to creation date of file filename
>>
>> vrs
>>
>> tell application "Finder
>> set nm to name of file filename
>> set cd to creation date of file filename
>> end tell
>
> They're identical.
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?
_______________________________________________
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