JS Scripting the Quick Selection Tool
Using the ScriptListener plug-in, I see that making a selection with the Quick Selection Tool produces this code:
/ =======================================================
var idslct = charIDToTypeID( "slct" );
var desc3 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref1 = new ActionReference();
var idquickSelectTool = stringIDToTypeID( "quickSelectTool" );
ref1.putClass( idquickSelectTool );
desc3.putReference( idnull, ref1 );
executeAction( idslct, desc3, DialogModes.NO );
This makes sense. But, I don't see how the location of the selection I made is passed into the ActionDescriptor (desc3) used for the executeAction() call.
Basically, I would like to be able to programmatically set the location of a Quick Selection, in JS.
Any tips for how to set that information into the ActionDescriptor?
(Or...is it not possible to set that info for a tool like Quick Selection?)
Thanks++