Re: Passing calls to an AS app via shell?
Re: Passing calls to an AS app via shell?
- Subject: Re: Passing calls to an AS app via shell?
- From: Christopher Nebel <email@hidden>
- Date: Fri, 8 Oct 2004 14:47:26 -0700
On Oct 8, 2004, at 3:13 AM, Johnny AppleScript wrote:
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?
Theoretically, yes. In practice, you'll need some extra software.
Graff's "call a handler" suggestion is essentially correct; the trick
is to call a handler without using AppleScript. This is certainly
possible, since all you need is to send a properly constructed Apple
event, but there's no standard software on the system to do it.
osasubr *might* do what you want, but I can't quite tell from their
description. If you want to look into how to write the code yourself,
read QA1111 (in particular, listing 5).
--Chris Nebel
AppleScript Engineering _______________________________________________
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