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

Script to open a illustrator document and make it as active document

Community Beginner ,
Oct 14, 2016 Oct 14, 2016

Hi All,

I am new to illustrator scripting.

Is it possible in illustrator script to open/close .ai file and make it as active document?how?

please help me.

Thank you.

TOPICS
Scripting
499
Translate
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
Adobe
Community Expert ,
Oct 14, 2016 Oct 14, 2016
LATEST

You can use open method under the Application class like below.

var f = File.openDialog("Select your AI file..."); //f as the file object

app.open (f);

Translate
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