• 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: 'include' statement in applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'include' statement in applescript


  • Subject: Re: 'include' statement in applescript
  • From: Michael Grant <email@hidden>
  • Date: Tue, 25 Jan 2005 17:38:54 -0600

On Jan 25, 2005, at 4:26 PM, Graham Anderson wrote:

> I was doing that before..but if you've got a fairly long script...it
> makes it a bit harder to deal with
>
> so, does applescript have some kind of include capability ?
>
> if not, I'll go back to calling handlers within handlers :(

I'm not sure what you mean by include capability, unless it's the load
script function that Brian mentioned. But even with that I don't think
you're safe against parallel execution, depending on what the handler
actually does. If the handler only runs its own code, you should be OK,
but if it runs a command in an application, for example, the parent
script won't wait for that command to finish unless it is actually
waiting for a return value that depends on it. Maybe you could have the
handler return a dummy value based on the result of the external
command, or set a flag and use a repeat until loop.

Michael

--
<http://globalocal.blogspot.com/>

Every human being has the right to communicate in any medium. This
right includes freedom of opinion and expression, and the right to
seek, receive and impart information, regardless of frontiers.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >'include' statement in applescript (From: Graham Anderson <email@hidden>)
 >Re: 'include' statement in applescript (From: Michael Grant <email@hidden>)
 >Re: 'include' statement in applescript (From: Graham Anderson <email@hidden>)

  • Prev by Date: Powerpoint translation
  • Next by Date: Re: 'include' statement in applescript
  • Previous by thread: Re: 'include' statement in applescript
  • Next by thread: Re: 'include' statement in applescript
  • Index(es):
    • Date
    • Thread