• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

scripting to open a file in illustrator

Community Beginner ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Hi everyone 

Can I open an illustrator file with just having the path without opening the dialog box through scripting?
Thanks in advance!

 

TOPICS
Scripting

Views

267

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Jul 14, 2021 Jul 14, 2021

Hey @hosseinh74814055 

try this

var myFile= new File("C:/FILES/name.eps");//change path
app.open(myFile);

Votes

Translate

Translate
Adobe
Participant ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Hey @hosseinh74814055 

try this

var myFile= new File("C:/FILES/name.eps");//change path
app.open(myFile);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Thanks!

It didn't work. this is the error I received:

hosseinh74814055_0-1626278548125.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 14, 2021 Jul 14, 2021

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 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

I changed it to my path:
"C:\Users\Rice\Documents\AE2.ai"

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Change for this

 

"C:/Users/Rice/Documents/AE2.ai"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

LATEST

It worked!

Thank you so much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines