When working with the rotate tool, we have the opportunity to set the angle of rotation of the canvas by entering the desired value on the toolbar, however, if we do the same through the script, the rotation does not occur (bur the specified angle is stored in the current tool settings):
#target photoshop;
var s2t = stringIDToTypeID;
(r = new ActionReference()).putClass(s2t("rotateTool"));
(d = new ActionDescriptor()).putReference(s2t("target"), r);
(d1 = new ActionDescriptor()).putInteger(s2t('angle'),99)
d.putObject(s2t("to"), s2t("target"), d1);
executeAction(s2t("set"), d, DialogModes.NO);
We can assume that the code does not work at all, but if we decide to control the rotateAll parameter in the same way, the change is immediately shown in the toolbar:
#target photoshop;
var s2t = stringIDToTypeID;
(r = new ActionReference()).putClass(s2t("rotateTool"));
(d = new ActionDescriptor()).putReference(s2t("target"), r);
(d1 = new ActionDescriptor()).putBoolean(s2t('rotateAll'),true)
d.putObject(s2t("to"), s2t("target"), d1);
executeAction(s2t("set"), d, DialogModes.NO);
Rotate image via radial controller