Skip to main content
Participant
October 15, 2009
Question

scripts for albums designer

  • October 15, 2009
  • 1 reply
  • 2577 views

Hello.

I am a wedding albums designer and i can't work in photoshop unfortunately without same options.

A. I need a short cut in Bridge for option file>place>place in photoshop.

It's puts photos to the template document directly and make it smart obgect.

B. marking the used photos from bridge to photoshop - for example ctrt
+6 mark with red color.

C. less important, hold by default proportion of image - ctrt+T without shift.

For this things I need some script and changes in bridge and
photoshop, and i ask  if you have it or can do it, or have another
solusion for this purpose?

It will be very useful and allow to me and many ather designers work
qukly in photoshop.

I really saffer without these options in Bridge and Photoshop.

qemotionq@gmail.com

This topic has been closed for replies.

1 reply

Paul Riggott
Inspiring
October 15, 2009

This should be close...

#target bridge
if( BridgeTalk.appName == "bridge" ) {
  PlaceFiles = new MenuElement("command", "Place Files In Photoshop",
                               "at the end of Thumbnail");
  PlaceFiles.onSelect = function () {
    placeFilesInPhotoshop();
  };

placeFilesInPhotoshop();
  function placeFilesInPhotoshop(){
    if (!BridgeTalk.isRunning("photoshop")) {
      BridgeTalk.launch("photoshop");
    }

    var sels = app.document.selections;
    for (i = 0; i < sels.length; i++) {
  var t = new Thumbnail(sels);
      sendPicToPhotoshop(sels.path);
    t.label= "SELECT";
    }
  };

  function sendPicToPhotoshop(fileName) {
    function _placeFile(fileName) {
      if (!app.documents.length)  return;    
      var id35 = charIDToTypeID( 'Plc ' ) ;
      var desc8 = new ActionDescriptor();
      var id36 = charIDToTypeID( 'null' );
      desc8.putPath( id36, new File(fileName));
      var id37 = charIDToTypeID( 'FTcs' );
      var id38 = charIDToTypeID( 'QCSt' );
      var id39 = charIDToTypeID( 'Qcsa' );
      desc8.putEnumerated( id37, id38, id39 );
      var id40 = charIDToTypeID( 'Ofst' );
      var desc9 = new ActionDescriptor();
      var id41 = charIDToTypeID( 'Hrzn' );
      var id42 = charIDToTypeID( '#Pxl' );
      desc9.putUnitDouble( id41, id42, 0.000000 );
      var id43 = charIDToTypeID( 'Vrtc' );
      var id44 = charIDToTypeID( '#Pxl' );
      desc9.putUnitDouble( id43, id44, 0.000000 );
      var id45 = charIDToTypeID( 'Ofst' );
      desc8.putObject( id40, id45, desc9 );
      executeAction( id35, desc8, DialogModes.NO );
    };

    var bt = new BridgeTalk;
    bt.target = "photoshop";
    var myScript = ("var _ftn = " + _placeFile.toSource() + "; _ftn(" +
                    fileName.toSource() +");");
    bt.body = myScript;
    bt.send();
  };
};