// enable double clicking from the Macintosh Finder or the Windows Explorer #target photoshop // Routine to turn off the preference to "resize during place paste" function resizePlaceOff() { var id5 = charIDToTypeID( "setd" ); var desc3 = new ActionDescriptor(); var id6 = charIDToTypeID( "null" ); var ref1 = new ActionReference(); var id7 = charIDToTypeID( "Prpr" ); var id8 = charIDToTypeID( "GnrP" ); ref1.putProperty( id7, id8 ); var id9 = charIDToTypeID( "capp" ); var id10 = charIDToTypeID( "Ordn" ); var id11 = charIDToTypeID( "Trgt" ); ref1.putEnumerated( id9, id10, id11 ); desc3.putReference( id6, ref1 ); var id12 = charIDToTypeID( "T " ); var desc4 = new ActionDescriptor(); var id13 = stringIDToTypeID( "resizePastePlace" ); desc4.putBoolean( id13, false ); var id14 = charIDToTypeID( "GnrP" ); desc3.putObject( id12, id14, desc4 ); executeAction( id5, desc3, DialogModes.NO ); } // Call the function resizePlaceOff resizePlaceOff();