2 Replies Latest reply on Mar 7, 2010 6:20 PM by Michael L Hale

    Scripting User Input Transform

    mkeatley17 Level 1

      I have an action recorded in photoshop that transforms a selection then waits for the user to adjust it.  Once the user hits enter it moves onto the next steps in the action.



      I'm curious:  How could I script somehting like this in Javascript?


      Thank you,

        • 1. Re: Scripting User Input Transform
          Michael L Hale Level 5

          Something like this.


          function ftn1() {
              var desc9 = new ActionDescriptor();
                  var ref6 = new ActionReference();
                  ref6.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
              desc9.putReference( charIDToTypeID('null'), ref6 );
              desc9.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
                  var desc10 = new ActionDescriptor();
                  desc10.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Rlt'), 0.000000 );
                  desc10.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Rlt'), 0.000000 );
              desc9.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc10 );
              executeAction( charIDToTypeID('Trnf'), desc9, DialogModes.ALL );
          • 2. Re: Scripting User Input Transform
            mkeatley17 Level 1

            Thank you! This works. I appreciate it.