• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tell block targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: tell block targets
      • From: Shane Stanley <email@hidden>
References: 
 >tell block targets (From: Jim Brandt <email@hidden>)
 >Re: tell block targets (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: tell block targets
  • Next by Date: Re: tell block targets
  • Previous by thread: Re: tell block targets
  • Next by thread: Re: tell block targets
  • Index(es):
    • Date
    • Thread