Passing calls to an AS app via shell?
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