• 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: Ehsan Saffari <email@hidden>
  • Date: Thu, 24 May 2001 17:29:16 -0600

On Thu, 24 May 2001 00:06:21, Michael Ellis <email@hidden> wrote:

>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...

I don't think there is one answer that fits all applications, or an
answer that will fit every possible combination of actions that one might
take within an application....Here's what I tried:

Script App #1 walks the records of a FMP database from start to end

Script App #2 displays a dialog with the value of a cell from the same
database while walking the records from end to start

the two sripts run fine at the same time, without any errors.

cheers
ehsan


  • Prev by Date: Re: automating e-mail replies
  • Next by Date: Minimizing current app
  • Previous by thread: Re: Thanks and another question
  • Next by thread: Re: Thanks and another question
  • Index(es):
    • Date
    • Thread