There are options in the Tool Bar that appears left while opening adobe photoshop.
If any of the option (for ex: Crop tool) is selected, its attributes will be displayed at top of photoshop appllication
I need to set/reset the values for the height, width, resolution..etc attributes of the Crop Tool through my script.
Can any one help me?
It would need an external program to put the cursor and enter values at the correct positions.
It isn't possible to script it.
You could create presets and then select the preset you want, but you can't create a preset via scripting.
var id6 = charIDToTypeID( "Rset" );
var desc3 = new ActionDescriptor();
var id7 = charIDToTypeID( "null" );
var ref2 = new ActionReference();
var id8 = charIDToTypeID( "Prpr" );
var id9 = charIDToTypeID( "CrnT" );
ref2.putProperty( id8, id9 );
var id10 = charIDToTypeID( "capp" );
var id11 = charIDToTypeID( "Ordn" );
var id12 = charIDToTypeID( "Trgt" );
ref2.putEnumerated( id10, id11, id12 );
desc3.putReference( id7, ref2 );
executeAction( id6, desc3, DialogModes.NO );
Europe, Middle East and Africa