Answered
app.doScript(myAppleScript, ScriptLanguage.applescriptLanguage) is not working in illustrator
Hi All,
I need to call a applescript inside the javascript, so i write a code like this:
var myAppleScript = 'tell application "Finder"\r';
myAppleScript += 'set myFolder to a reference to folder (name of startup disk & "' + myMacFolder + '")\r';
myAppleScript += 'set myFile to a reference to file (name of startup disk & "' + myMacFile + '")\r';
myAppleScript += 'tell myFile\r';
myAppleScript += 'duplicate to myFolder\r';
myAppleScript += 'end tell\r';
myAppleScript += 'end tell\r';
app.doScript(myAppleScript, ScriptLanguage.applescriptLanguage);
Its working fine in InDesign but if i run the same in illustrator, its shows an error that ScriptLanguage is undefined, can anyone help me to call the apple script using do Script in illustrator javascripting.
Thanks in Advance
Muthu
Its working fine in InDesign but if i run the same in illustrator, its shows an error that ScriptLanguage is undefined, can anyone help me to call the apple script using do Script in illustrator javascripting.
Thanks in Advance
Muthu
