Hallo,
I want to use the "Crop and Straighten Photos" plugin in a Photoshop action. But I want to get only one picture. So if I use the plugin manual, I hold the alt key pressed down. Photoshop then produce only one cropped picture.
But if I record an action with that plugin, the pressed key is not recognized. So I converted the action to a javascript-file and this is the result:
function step1(enabled, withDialog) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); executeAction(sTID('CropPhotosAuto0001'), undefined, dialogMode); };
I think, there are two ways for me to let the script do what I want:
1) Give the "CropPhotosAuto0001"-method-call a param, that tell the plugin, it has to produce only one picture. But I do not found a documentation of this method, so I do not know the syntax of the param.
2) Insert some code to change the state of the jsx-script: I am not familiar with jsx, but I think, there are some event variables that indicate a pressed key or a pressed mouse button, plugins recognize.
Hopefully you can help me.
Thanks a lot!