Skip to main content
Inspiring
January 31, 2016
Answered

moveTool options

  • January 31, 2016
  • 1 reply
  • 487 views

The code snippet was obtained with the Script Listener in Photoshop CC 2015.1.2. The snippet selects the move tool.

Is it possible to modify the snippet to include the Auto-Select move tool option? I am unable to record the Auto-Select tool option.

setToolMoveAutoSelect();

function setToolMoveAutoSelect() { 

// =======================================================

var idslct = charIDToTypeID( "slct" );

    var desc5 = new ActionDescriptor();

    var idnull = charIDToTypeID( "null" );

        var ref4 = new ActionReference();

        var idmoveTool = stringIDToTypeID( "moveTool" );

        ref4.putClass( idmoveTool );

    desc5.putReference( idnull, ref4 );

    var iddontRecord = stringIDToTypeID( "dontRecord" );

    desc5.putBoolean( iddontRecord, true );

    var idforceNotify = stringIDToTypeID( "forceNotify" );

    desc5.putBoolean( idforceNotify, true );

executeAction( idslct, desc5, DialogModes.NO );

}

This topic has been closed for replies.
Correct answer c.pfaffenbichler

If I remember correctly changing the currentToolOptions directly is a real problem/impossible … the most promising work-around might be using Tool Presets, selecting those should work out.

1 reply

c.pfaffenbichler
Community Expert
c.pfaffenbichlerCommunity ExpertCorrect answer
Community Expert
January 31, 2016

If I remember correctly changing the currentToolOptions directly is a real problem/impossible … the most promising work-around might be using Tool Presets, selecting those should work out.

ojodegatoAuthor
Inspiring
January 31, 2016

Thank you! Your work recommendation works well.