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.
Kindly advise me through scripting(vbscript/javascript) for phoshop(cs4, cs5). I have attached the screenshot for your review.
Can any one help me?
Thanks
Would resetting the current tool options work: (javascript)
// =======================================================
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 );
North America
Europe, Middle East and Africa
Asia Pacific