-
1. Re: script for placing multiple files into Photoshop-CS5
Curt Y Nov 30, 2011 11:16 AM (in response to k.loy)Might take a look in the scripting forum http://forums.adobe.com/community/bridge/bridge_scripting
Do a search and you will probably find one. The CS4 script may work OK.
-
2. Re: script for placing multiple files into Photoshop-CS5
Omke Oudeman Nov 30, 2011 11:34 AM (in response to k.loy)script for placing multiple files into Photoshop
Could you be a bit more specific? Do you mean 'load files in to Photoshop Layers'?
If so, that script should be in Bridge. Select the files you want to open and go to the menu Tools / Photoshop/ load files into Photoshop layers.
There are a bunch of scripts visible under this menu like 'batch, 'HDR' and 'Photomerge'
If you have no scripts in this place or not even Photoshop under this Tool menu then you should first restart Bridge holding down option key to reset preferences. Then try again.
-
3. Re: script for placing multiple files into Photoshop-CS5
Paul Riggott Nov 30, 2011 3:30 PM (in response to Omke Oudeman)Load files into Photoshop layers does just that but as raster layers if smart objects are required this is not available only by using File - Place - Photoshop and only one file at a time. If smart objet layer are required the following script should do it...
#target bridge /*/////////////////////////////////////////////////////// / NB: In General Preferences, Place or Drag Raster Images as Smart Object needs to ticked / if you require all layers as smart objects! *//////////////////////////////////////////////////////// if( BridgeTalk.appName == "bridge" ) { PlaceFiles = new MenuElement("command", "Place Files In Photoshop", "at the end of tools/ps"); PlaceFiles.onSelect = function () { var selectedFiles=[]; for(var a = 0 ; a<app.document.selections.length;a++){ selectedFiles.push(app.document.selections[a].spec); } placeFiles(selectedFiles); function placeFiles(fileList){ function script(fileList) { try{ fileList= eval(fileList); if(!documents.length){ openAsSmartObject(new File(fileList.shift())); } for(var z in fileList){ placeFile(new File(fileList[z])); } function placeFile( file) { var desc = new ActionDescriptor(); desc.putPath( charIDToTypeID('null'), file ); desc.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') ); var offsetDesc = new ActionDescriptor(); offsetDesc.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Pxl'), 0.000000 ); offsetDesc.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Pxl'), 0.000000 ); desc.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), offsetDesc ); executeAction( charIDToTypeID('Plc '), desc, DialogModes.NO ); }; function openAsSmartObject(file) { var desc41 = new ActionDescriptor(); desc41.putPath( charIDToTypeID('null'), file ); desc41.putBoolean( stringIDToTypeID('smartObject'), true ); executeAction( charIDToTypeID('Opn '), desc41, DialogModes.NO ); }; }catch(e){alert(e+" - "+e.line);} } var bt = new BridgeTalk(); bt.target = "photoshop"; bt.body = "var ftn = " + script.toSource() + "; ftn(" + fileList.toSource() +");"; bt.send(8); bt.pump(); }; }}

