Copy link to clipboard
Copied
Hi All,
this is my code:
var str="do shell script \"http://192.168.9.218/ags/indesignReturn.php?rtype=closeSignal&fileStatus=5&batchId=331320\"";
app.doScript(str, ScriptLanguage.APPLESCRIPT_LANGUAGE);
it is not executing what is the problem
Thanks in Advance,
Mahesh
Dirty solution ...
JS code
// URL escape & by \\
var myURL="http://192.168.9.218/ags/indesignReturn.php?rtype=closeSignal\\&fileStatus=5\\&batchId=331320";
// call a applescript
var mScript = "/Users/xxx/Desktop/openURL.scpt";
var mResult = app.doScript(mScript,ScriptLanguage.applescriptLanguage,[myURL]);
openURL.scp
set myURL to item 1 of arguments
try
set openURL to do shell script "open " & myURL
on error errStr number errorNumber
set openURL to false
end try
return openURL
Copy link to clipboard
Copied
Hi,
Try this ...
var str='do shell script "open http://192.168.9.218/ags/indesignReturn.php?rtype=closeSignal&fileStatus=5&batchId=331320"';
app.doScript(str, ScriptLanguage.APPLESCRIPT_LANGUAGE);
Regards
Copy link to clipboard
Copied
Hi
Thanks for reply
i try your code it opens the browser, but the url not properly execute
"http://192.168.9.218/ags/indesignReturn.php?rtype=closeSignal"
this code only shows after the '&' symbol it is not copied in address bar
Mahesh
Copy link to clipboard
Copied
Dirty solution ...
JS code
// URL escape & by \\
var myURL="http://192.168.9.218/ags/indesignReturn.php?rtype=closeSignal\\&fileStatus=5\\&batchId=331320";
// call a applescript
var mScript = "/Users/xxx/Desktop/openURL.scpt";
var mResult = app.doScript(mScript,ScriptLanguage.applescriptLanguage,[myURL]);
openURL.scp
set myURL to item 1 of arguments
try
set openURL to do shell script "open " & myURL
on error errStr number errorNumber
set openURL to false
end try
return openURL
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more