// enable double clicking from the Macintosh Finder or the Windows Explorer #target photoshop // Routine to turn on the preference to "resize during place paste" function resizePlaceOn() { var id15 = charIDToTypeID( "setd" ); var desc5 = new ActionDescriptor(); var id16 = charIDToTypeID( "null" ); var ref2 = new ActionReference(); var id17 = charIDToTypeID( "Prpr" ); var id18 = charIDToTypeID( "GnrP" ); ref2.putProperty( id17, id18 ); var id19 = charIDToTypeID( "capp" ); var id20 = charIDToTypeID( "Ordn" ); var id21 = charIDToTypeID( "Trgt" ); ref2.putEnumerated( id19, id20, id21 ); desc5.putReference( id16, ref2 ); var id22 = charIDToTypeID( "T " ); var desc6 = new ActionDescriptor(); var id23 = stringIDToTypeID( "resizePastePlace" ); desc6.putBoolean( id23, true ); var id24 = charIDToTypeID( "GnrP" ); desc5.putObject( id22, id24, desc6 ); executeAction( id15, desc5, DialogModes.NO ); } // Call the function resizePlaceOn resizePlaceOn();