Scripting: can i select (only select) specific command / action in the actions palette?
There is a script that is recorded (and runs by user) in the action palette. As a result of its work, the script launches another action. Another action (sometimes) has a "stop" command.
I need to make that the cursor in the action palette set on the command after the stop, and does not return to the command from which the script was run (last variant - is normal photoshop behavior). I can get the index of the command on which the stop occurred, I can continue the action from it, but this option is not suitable for the me in that script. Is there a known method that allows to set focus on a specific command / action in the actions palette?
This sample does not work (the "select" command cannot be executed)
function s2t(s) {return stringIDToTypeID(s)}
var desc = new ActionDescriptor()
var ref = new ActionReference()
ref.putName(s2t("action"), "test atn" )
ref.putName(s2t("actionSet"), "test set" )
desc.putReference(s2t("target"), ref )
executeAction(s2t ("select"), desc)
