Application.batch() gives error while File->Automate->Batch does not

New Here ,
Mar 03, 2022 Mar 03, 2022

Copy link to clipboard

Copied

I am trying to run batch work on a a few files, but I get some "The command '___' is not currently available." on a few files when running Application.batch()  through a javascript (.jsx) script while I don't get these when running with the same settings from File->Automate->Batch.

 

Is this a bug? Any ideas what might be doing this?

 

Thank you

TOPICS
Actions and scripting , Windows

Views

66

Likes

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
LEGEND ,
Mar 03, 2022 Mar 03, 2022

Copy link to clipboard

Copied

First of all don't use Application. prefix.

Likes

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
New Here ,
Mar 03, 2022 Mar 03, 2022

Copy link to clipboard

Copied

well in my code, I'm using app.batch(). I was just referencing the method

Likes

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
Adobe Community Professional ,
Mar 04, 2022 Mar 04, 2022

Copy link to clipboard

Copied

LATEST

I would record the run of the batch using scripting listener, then compare the recorded script code run to see if the same error is triggered when using action manager code vs. the standard JS reference object model code.

Likes

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