• 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: Michael Ellis <email@hidden>
  • Date: Thu, 24 May 2001 00:06:21 -0400

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




==========================================================================
Michael Ellis Phone: 941-377-5562 x5169
Systems Analyst Manager FAX: 941-377-5590
Medical Education Technologies, Inc. (METI) Internet: email@hidden


  • Prev by Date: Re: AppleScript & Mac OS X
  • Next by Date: Re: Outlook Express rules?
  • Previous by thread: Re: Pressing Filemaker's Continue Button
  • Next by thread: Re: Thanks and another question
  • Index(es):
    • Date
    • Thread