• 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
Calling one script from another/asynchronous operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling one script from another/asynchronous operation


  • Subject: Calling one script from another/asynchronous operation
  • From: Robert MacGregor <email@hidden>
  • Date: Sun, 21 Aug 2005 20:04:19 -0400

I have an Applescript front-end for displaying log messages. The log messages originate from a java socket using a blocking socket read. My socket's blocking-behavior causes problems with my UI/front-end because the blocking prevents UI events from being processed.

I tried placing the blocking call in my front-end's idle-handler. This works when there is little blocking but causes noticeable app- lag with increased blocking.

After reading this mail-lists archives I see folks advocating a multi- process approach. I tried separate processes for my scripted UI and scripted socket code; and then I hit a problem. How can I call my UI- script from my socket-script?

This works:

tell application "UI"
    quit
end tell

this doesn't complete - 'UI got an error: Can't continue logSocketData."

tell application "UI"
    logSocketData "Some data from socket"
end tell


What am I missing? quit is a menu-level command; I'm guessing logSocketData needs to be declared somewhere.



Rob

_______________________________________________
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


  • Prev by Date: Re: on run, Expected a reference
  • Next by Date: Re: Finder f*ck-ups
  • Previous by thread: Re: on run, Expected a reference
  • Next by thread: Help with foreign language issue
  • Index(es):
    • Date
    • Thread