• 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: 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

  • Follow-Ups:
    • Re: tell block targets
      • From: Alex Zavatone <email@hidden>
References: 
 >tell block targets (From: Jim Brandt <email@hidden>)
 >Re: tell block targets (From: Shane Stanley <email@hidden>)
 >Re: tell block targets (From: Alex Zavatone <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