• 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: Thanks and another question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thanks and another question


  • Subject: Re: Thanks and another question
  • From: Ken Dobson <email@hidden>
  • Date: Thu, 24 May 2001 19:26:28 -0400

on 5/24/01 11:58 AM, email@hidden at
email@hidden wrote:

> Subject: Re: Thanks and another question
> Date: Thu, 24 May 2001 00:06:21 -0400
> From: Michael Ellis <email@hidden>
> To: <email@hidden>
>
> Thanks to everyone who helped with my questions about calling functions
> by object reference and idle handlers. Your input was invaluable.
>
> My next question is this:
>
> "Is it possible for two scripts, running independently, to message the
> same application?"
>
> It would seem that the answer is no. When I try this, the first script
> works great. When I spawn the second script, I get an error (-2709)
> saying that the second script could not get the application's event
> dictionary.
>
> Now I expect that this would occur if the first script never leaves a
> "tell" segment. For example:
>
> If script #1 says:
>
> tell application "myApp"
> ... do lots of work ...
> end tell
>
> and script #2 comes along while #1 is still inside the "tell application
> "myApp"" block, I would expect to get the above error. However, script
> #1 does not stay inside of the "tell" block the whole time. I would
> expect that script #2 would eventually be able to access the dictionary
> for "myApp" as soon as script #1 left the "tell" block.
>
> Is this an incorrect assumption? Does script #2 have to be able to
> access the application's event dictionary on the first attempt?
>
> Thanks for any suggestions...
>
> -Mike Ellis

Interesting question, would this be a place for for "considering application
response"? What I find interesting is the nature of the error you receive
and why the first script is blocking you out of the apps dictionary. Is it a
file access/ file busy issue at that level? Sorry I realize I'm just adding
questions to your question but you caught my attention with that one.


  • Prev by Date: Minimizing current app
  • Next by Date: getting real numbers from string expressions
  • Previous by thread: Re: Thanks and another question
  • Next by thread: Re: Thanks and another question
  • Index(es):
    • Date
    • Thread