Skip to main content
Adobe Photoshop Family

5 Messages


142 Points

Tue, Oct 31, 2017 7:59 PM


Photoshop: Scripting: JavaScript app.batch method ignores specified Action Set. Problem in case of Action name duplicated at other Action Set

Scenario: Create set "Set1", then another set "Set2". Record different actions in both of sets but use the same name for the action "MyAction". When you run Application.batch command via code - Photoshop always run "MyAction" from the first set (Set1) regardles if code requested to pick action from Set2.
In Documentation of PhotoShop JavaScript reference for Application.batch() it is written that it expects 4 arguments: batch(inputFiles, action, from [, options]). The "from" argument is set to "Set2" but script always run  "MyAction" from the first available set having the action labeled as requested in action argument ("Set1" int that case). InputFiles and optional options are set properly and they works as expected, the only problem is the inability to control the parent set if batch is ran via code.

Is this fixable?
Thank you.


Official Solution

Adobe Administrator


15.8K Messages


295.1K Points

a year ago

This is was fixed in 20.0.0 (2019)

Sr. Product Manager, Adobe Digital Imaging



86 Messages


2.3K Points

3 years ago


I can reproduce this (as far back as CS6 too). I've logged a bug. In the meantime, one possible workaround is to drag the set with the intended action above any others with the same name in the actions panel. It appears to run the first instance of the action with the name specified in the batch call. 

Thanks for the report!


187 Messages


3.6K Points

Was this addressed on CC2020 or CC2019?