2 Replies Latest reply on Aug 20, 2012 4:46 PM by RaquelWelch
      • 1. Re: JS Scripting content-aware fill?
        JJMack Most Valuable Participant

        When there is nothing in the scripting guides think of the scritlistener plugin and the action manager code it records,

         

         

        // =======================================================

        var idFl = charIDToTypeID( "Fl  " );

            var desc12 = new ActionDescriptor();

            var idUsng = charIDToTypeID( "Usng" );

            var idFlCn = charIDToTypeID( "FlCn" );

            var idcontentAware = stringIDToTypeID( "contentAware" );

            desc12.putEnumerated( idUsng, idFlCn, idcontentAware );

            var idOpct = charIDToTypeID( "Opct" );

            var idPrc = charIDToTypeID( "#Prc" );

            desc12.putUnitDouble( idOpct, idPrc, 100.000000 );

            var idMd = charIDToTypeID( "Md  " );

            var idBlnM = charIDToTypeID( "BlnM" );

            var idNrml = charIDToTypeID( "Nrml" );

            desc12.putEnumerated( idMd, idBlnM, idNrml );

        executeAction( idFl, desc12, DialogModes.NO );

         

         

        • 2. Re: JS Scripting content-aware fill?
          RaquelWelch Level 1

          Very helpful -- thank you! Got it now.