Alright ,let's sum up:
All code is ExtendScript (JavaScript) code.
If you want to retain the current tool, whatever it is, and want the tool box to show the eyedropper tool use this code:
//Remember the current tool: var toolUsedNow = app.toolBoxTools.currentTool; //Set the eyedropper tool as the current tool: app.toolBoxTools.currentTool = UITools.EYE_DROPPER_TOOL; //Reset the current tool as remembered: app.toolBoxTools.currentTool = toolUsedNow;
If you want the eyedropper tool as the current tool, use this line alone:
//Set the eyedropper tool as the current tool: app.toolBoxTools.currentTool = UITools.EYE_DROPPER_TOOL;
Uwe