Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Applescript: Communicate with other AppleScript

Hi there,


Which ways are there, and how do you use them (please give simple examples) to communicate between Applescripts?

Or is that basically impossible, and do you have to use c++ for that?


You may list all the possible ways , but the way I need requires certain things.

Imagine AppA is the main app, and when the user clicks a button,

AppA launches another Applescript app or script(preferably app*) called AppB, while giving certain parameters.


I'm aware of handlers, but I don't know fully how to use and call them.


Thanks in advance,


Isaiah


*I prefer to call and activate an app, because I want to be able to (let AppA) cancel AppB at any time.

If AppB would be an app, I could just simply use "do shell command "killall AppB"".

But if you know a method to do that for AppB as Applescript, then an Applescript is fine.

(If AppB runs as applescript, is it then an process? Because you can cancel processes in a shell command)

iMac, Mac OS X (10.7.5)

Posted on Apr 22, 2013 11:38 AM

Reply
Question marked as Best reply

Posted on Apr 22, 2013 12:26 PM

See Calling a Script Application From a Script


If you need more then to start another script, that is actually send data back and forth post back.

3 replies

Applescript: Communicate with other AppleScript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.