How to script "Show/Hide Transform Controls?"
Well I do need it, but Action Manager doesn't detect it, and for some weird reason there is no this option in any menu of CS5.1 and probably CS6 I use in work. Can someone tell me how can I script it?

Code: Select all
cTT = charIDToTypeID, sTT = stringIDToTypeID;
(ref1 = new ActionReference()).putProperty(sTT('property'), tool = sTT('tool'))
ref1.putClass(sTT('application')); if (typeIDToStringID((dsc1 = executeActionGet(ref1))
.getEnumerationType(tool))) (ref2 = new ActionReference()).putClass(sTT('moveTool')),
(dsc2 = executeActionGet(ref1)).getObjectValue(sTT('currentToolOptions')),
dsc2.putBoolean(cTT('Abbx'), false), dsc1.putReference(sTT('null'), ref2),
dsc1.putObject(sTT('to'), sTT('null'), dsc2),
executeAction(sTT('set'), dsc1)