Sunday, 11 August 2013

How to run Applescript from java package

How to run Applescript from java package

I'm trying to run my applescript in my system like this.
String cmd = "osascript " + cmdpath + "ReadNeofile.scpt";
UnixComm(cmd);
I used Java Swing to developed the system and its a standalone system. The
code working fine where I able to run the applescript and get the input.
My biggest drawback is, to do this I need to save the apple script in
client pc. Is there any ways where I can call the applescript from java
packages since saving scripts in client pc wont be safe. I scared if my
client accidentally delete the script, my entire system will be corrupted.
Please advice.

No comments:

Post a Comment