Copy link to clipboard
Copied
Hi All,
My request is zip the folder.
I create the folder using Javascript and the variable is "Folder_Path"
For to zip, I pass the Folder_Path variable to the AppleScript. But can't success.
Please help
Regards
Siraj
1 Correct answer
have a look at scripts args ;
var main = function() {
app.scriptArgs.setValue ("path", "/path/to/folder" );
var scpt = 'tell application "Adobe InDesign CC 2015"\
tell script args\
set v to get value name "path"\
display dialog v\
end tell\
end tell';
app.doScript ( scpt, ScriptLanguage.applescriptLanguage );
}
main();
HTH
Loic
Copy link to clipboard
Copied
have a look at scripts args ;
var main = function() {
app.scriptArgs.setValue ("path", "/path/to/folder" );
var scpt = 'tell application "Adobe InDesign CC 2015"\
tell script args\
set v to get value name "path"\
display dialog v\
end tell\
end tell';
app.doScript ( scpt, ScriptLanguage.applescriptLanguage );
}
main();
HTH
Loic

