Bonjour ! The exif information can be extracted with the app.activeDocument.info method Attention information varies depending on the model and brand of the device! And maybe the version of Photoshop ??? So I use this script to determine the number corresponding to the information I want to extract:...
Bonjour You can use the " try catch " method ! This by exemple var x=prompt("Enter a number between 0 and 10:",""); try { if(x>10) { throw "Err1"; } else if(x<0) { throw "Err2"; } else if(isNaN(x)) { throw "Err3"; } } catch(er) { if(er==&qu...
Bonjour I have three scripts that may be suitable for you : SelectOutil.jsx //SelectOutil.jsx selectTool('moveTool'); selectTool('artBrushTool'); //magicStampTool //selectTool('marqueeRectTool'); //selectTool('marqueeEllipTool'); //selectTool('marqueeSingleRowTool'); //selectTool('marqueeSingleColum...
Ah bon ! :) You have the xbytor function setZoom( ) that should suit you : function setZoom( zoom ) {// as percent cTID = function(s) { return app.charIDToTypeID(s); }; // from xbytor var docRes = activeDocument.resolution; activeDocument.resizeImage( undefined, undefined, 72/(zoom/100), ResampleMet...