Skip to main content
brian_alv
Participating Frequently
May 19, 2020
Answered

Action script that selects circle marquee tool

  • May 19, 2020
  • 3 replies
  • 2399 views

Hi,

I'm looking to create a cusom action script that just selects the circle marquee tool so that I can then assign an F key to it for a short cut. Is this possible and how?

 

Thanks for any help

This topic has been closed for replies.
Correct answer jazz-y
(r = new ActionReference()).putClass(stringIDToTypeID('marqueeEllipTool'));
(d = new ActionDescriptor()).putReference(stringIDToTypeID('target'), r);
executeAction(stringIDToTypeID('select'), d, DialogModes.NO)

3 replies

brian_alv
brian_alvAuthor
Participating Frequently
May 19, 2020

Thank you that works perfectly

jazz-yCorrect answer
Legend
May 19, 2020
(r = new ActionReference()).putClass(stringIDToTypeID('marqueeEllipTool'));
(d = new ActionDescriptor()).putReference(stringIDToTypeID('target'), r);
executeAction(stringIDToTypeID('select'), d, DialogModes.NO)
Stephen Marsh
Community Expert
Community Expert
May 20, 2020

For the sake of completeness just in case somebody else in the future is looking for a different tool:

 

 

'moveTool'
'marqueeRectTool'
'marqueeEllipTool'
'marqueeSingleRowTool'
'marqueeSingleColumnTool'
'lassoTool'
'polySelTool'
'magneticLassoTool'
'quickSelectTool'
'magicWandTool'
'cropTool'
'sliceTool'
'sliceSelectTool'
'spotHealingBrushTool'
'magicStampTool'
'patchSelection'
'redEyeTool'
'paintbrushTool'
'pencilTool'
'colorReplacementBrushTool'
'cloneStampTool'
'patternStampTool'
'historyBrushTool'
'artBrushTool'
'eraserTool'
'backgroundEraserTool'
'magicEraserTool'
'gradientTool'
'bucketTool'
'blurTool'
'sharpenTool'
'smudgeTool'
'dodgeTool'
'burnInTool'
'saturationTool'
'penTool'
'freeformPenTool'
'addKnotTool'
'deleteKnotTool'
'convertKnotTool'
'typeCreateOrEditTool'
'typeVerticalCreateOrEditTool'
'typeCreateMaskTool'
'typeVerticalCreateMaskTool'
'pathComponentSelectTool'
'directSelectTool'
'rectangleTool'
'roundedRectangleTool'
'ellipseTool'
'polygonTool'
'lineTool'
'customShapeTool'
'textAnnotTool'
'soundAnnotTool'
'eyedropperTool'
'colorSamplerTool'
'rulerTool'
'handTool'
'zoomTool'

 

 

Select tool list

Participant
December 18, 2020

Hello, how can be named Object Selection Tool?

Thanks

PECourtejoie
Community Expert
Community Expert
May 19, 2020

HEllo, why do you want to give it a F key instead of changing its shortcut in the KB shortcuts editor found at the end of the Edit menu?

brian_alv
brian_alvAuthor
Participating Frequently
May 19, 2020

I'm hoping to keep the regular shortcuts as stock as possible and only change the F keys. Thanks