Copy link to clipboard
Copied
Can I open an illustrator file with just having the path without opening the dialog box through scripting?
Thanks in advance!
try this
var myFile= new File("C:/FILES/name.eps");//change path
app.open(myFile);
Copy link to clipboard
Copied
try this
var myFile= new File("C:/FILES/name.eps");//change path
app.open(myFile);
Copy link to clipboard
Copied
Thanks!
It didn't work. this is the error I received:
Copy link to clipboard
Copied
you must to change the path "C:/FILES/name.eps" is just an example
please change path where you have the file you need open
Copy link to clipboard
Copied
I changed it to my path:
"C:\Users\Rice\Documents\AE2.ai"
Copy link to clipboard
Copied
Change for this
"C:/Users/Rice/Documents/AE2.ai"
Copy link to clipboard
Copied
It worked!
Thank you so much!