• 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
Passing calls to an AS app via shell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing calls to an AS app via shell?


  • Subject: Passing calls to an AS app via shell?
  • From: Johnny AppleScript <email@hidden>
  • Date: Fri, 08 Oct 2004 04:13:31 -0600

Title: Passing calls to an AS app via shell?
Hello,

I hope I can make this question clear.

_javascript_ can pass calls out to the shell, just like AS can. E.G.:

    message="echo hello world"
    system(message)

...will indeed write the string to console.log, and I can, of course, read the data from console.log, but I don’t want to actually write/read the data to disk, if I can help it. Using the Clipboard is not an option, either.

    message="osascript -e 'tell application \"System Events\" to display dialog \"hello world\"’"
    system(message)

...will at least do exactly as expected. Great.

Now, I want to know if there’s a way to pass the string (hello world) directly to a running applet, preferably without the use of osascript.

If I have an applet, say, ‘myRunningApp.app’, which is always running in the background, I think I can pass a variable to it from osascript, and then have it act on it, correct? What I really want to do is avoid the (albeit short) delay created by use of osascript commands. Does anyone know of a way for an idling Applet to “listen” for calls from the system or shell, and act on them, without writing data to a text file?

Short of that, I think I can figure out the osascript method, but if anyone has any samples, I’d appreciate it.

TIA — JA (getting in deeper than he’d like with this one)
 _______________________________________________
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

  • Follow-Ups:
    • Re: Passing calls to an AS app via shell?
      • From: Christopher Nebel <email@hidden>
    • Re: Passing calls to an AS app via shell?
      • From: Andrew Oliver <email@hidden>
    • Re: Passing calls to an AS app via shell?
      • From: Graff <email@hidden>
    • Re: Passing calls to an AS app via shell?
      • From: Johnny AppleScript <email@hidden>
  • Prev by Date: Run Applescript prior to sleep
  • Next by Date: Re: Passing calls to an AS app via shell?
  • Previous by thread: Run Applescript prior to sleep
  • Next by thread: Re: Passing calls to an AS app via shell?
  • Index(es):
    • Date
    • Thread