Copy link to clipboard
Copied
Hi Experts,
I am using MAC OSX 10.8.3
My script is :
#target indesign
var myDocument=app.activeDocument;
myDocument.save(File("/var/Untitled-1.indd"));
It give error
can not save "Untitled-1.indd" under a new name
While this script run successfully on MAC OSX 10.6.8
How save this file under a new name ?
I also give permission to /Var/
using sudo chmod -R 777 '/Var/'
Login from User ID in MAC OSX
Not System Administrator
Thanks.
Copy link to clipboard
Copied
While most file managers are not fussy about the cases used in File names, JavaScript is: could it be that your problem is caused by the difference between "var" and "Var"? Just guessing.
Dave
Copy link to clipboard
Copied
Thanks Dave for reply