• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
2

P: Scripting: JavaScript app.batch method ignores specified Action Set

Community Beginner ,
Oct 31, 2017 Oct 31, 2017

Copy link to clipboard

Copied

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.

Bug Fixed
TOPICS
macOS , Windows

Views

119

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

Adobe Employee , Jan 13, 2020 Jan 13, 2020
This is was fixed in 20.0.0 (2019)

Votes

Translate

Translate
3 Comments
Adobe Employee ,
Oct 31, 2017 Oct 31, 2017

Copy link to clipboard

Copied

Hi,

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!

Eric

Votes

Translate

Translate

Report

Report
Enthusiast ,
Jan 12, 2020 Jan 12, 2020

Copy link to clipboard

Copied

Was this addressed on CC2020 or CC2019?

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

LATEST
This is was fixed in 20.0.0 (2019)

Votes

Translate

Translate

Report

Report