I'm looking to find the settings for various options for different tools in Photoshop.
This post hinted at the answer: https://graphicdesign.stackexchange.com/a/113421
It said:
To get a current setting of an eyedropper (switch to eyedropper first using Joonas' selectTool()):
//returns 0 for Point Sample, 1 for 3x3, etc
function getCurrentEyedropperSetting() {
var ref = new ActionReference();
ref.putProperty(stringIDToTypeID("property"), stringIDToTypeID("tool"));
ref.putEnumerated(stringIDToTypeID("application"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
return executeActionGet(ref).getObjectValue(stringIDToTypeID("currentToolOptions")).getInteger(stringIDToTypeID("eyeDropperSample"));
};
But how would one know the correct stringID ("eyeDropperSample" in this case) for a certain tool option in order to extract its value?
For example, I'm looking to get the "Range" setting of the Burn tool. I've selected my Burn tool and tried replacing "eyeDropperSample" with:
"range"
"burnRange"
"burnToolRange"
And they all result in execution errors for the script.
ScriptListener doesn't provide any clue as to what the correct StringID would be either as changing the mode doesn't generate any entry in ScriptListener.
Sort of a mystery to me at this point. Is there a list of StringIDs somewhere that I could search through to find the correct one for the Burn tool Range? Or is there a way to get Photoshop to tell me the correct StringID?