Quantcast
Channel: Adobe Community: Message List - Unable to call applescript from extension[CS6]
Viewing all articles
Browse latest Browse all 8

Re: Unable to call applescript from extension[CS6]

$
0
0

I got it

 

var scriptFile:File = new File('yourscript.scpt');
var scriptUtility:File = new File('/usr/bin/osascript');
if (scriptUtility.exists)
{      var processInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();      processInfo.executable = scriptUtility;      processInfo.arguments = new Vector.();      processInfo.arguments.push(scriptFile.nativePath);      processInfo.arguments.push("your argument here");       var process:NativeProcess = new NativeProcess();      process.start(processInfo);
}

 

And it will be executed perfectly.

 

Thanks for help


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images