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

Very simple script

Explorer ,
Sep 12, 2017 Sep 12, 2017

Copy link to clipboard

Copied

Hi folks,

I need a simple script for open a specify AI document and run an AI action.

Someone can help me?

Thanx a lot

Paolo

TOPICS
Scripting

Views

242

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

Community Expert , Sep 12, 2017 Sep 12, 2017

function openFile()

{

var filePath = "/path/to/file";

var file = new File(filePath);

app.open(file);

app.doScript("Action Name", "Set Name");

}

openFile();

Votes

Translate

Translate
Adobe
Community Expert ,
Sep 12, 2017 Sep 12, 2017

Copy link to clipboard

Copied

function openFile()

{

var filePath = "/path/to/file";

var file = new File(filePath);

app.open(file);

app.doScript("Action Name", "Set Name");

}

openFile();

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
Explorer ,
Sep 12, 2017 Sep 12, 2017

Copy link to clipboard

Copied

LATEST

Yeah!
Thanx William!

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