2 Replies Latest reply on Sep 9, 2014 9:42 AM by hamdifem

    I would like to find the object change and to move

    hamdifem Level 1

      Thank you very much, but

      Sayfaları, tek tek sayfalarını bakacak bu script belgede (3, 5, 7, ...) işlem yok

      Image_01.jpg

      I would like to object all page (height and width of the rectangle is known, the text frame) to move to find and replace

      The height and width of a rectangle with known or find text frame, changing the height and width, to move to a point

      I'm glad I sent you edit scprit

       

      *****

       

       

      var findX, findY, changeX, changeY, moveX, moveY;

       

      var diyalogWindow = app.dialogs.add({name:"RECTANGLE oR TEXT FRAME", canCancel:true});

      with(diyalogWindow){

        with(dialogColumns.add()){

      with(borderPanels.add()){

      with(dialogColumns.add()) {

                        

      staticTexts.add({staticLabel:"FİND X"});

                           findX = textEditboxes.add({editContents: "10"});

                          staticTexts.add({staticLabel:"FİND Y"});

                            findY = textEditboxes.add({editContents: "10"});

      }

      with(dialogColumns.add()) {

           staticTexts.add({staticLabel:"CHANGE X"});

                            changeX = textEditboxes.add({editContents: "50"});

                            staticTexts.add({staticLabel:"CHANGE Y"});

                            changeY = textEditboxes.add({editContents: "60"});

      }

               with(dialogColumns.add()) {

           staticTexts.add({staticLabel:"MOVE X"});

                            moveX = textEditboxes.add({editContents: "100"});

                            staticTexts.add({staticLabel:"MOVE Y"});

                            moveY = textEditboxes.add({editContents: "10"});

      }

      }

            

        }

      }

      if(diyalogWindow.show() == 1) {

        

      var myDocument=app.activeDocument;

      var p;

      for(p=0; p < myDocument.selection.length; ++p) {

              myDocument.selection[p].move([changeX.editContents,changeY.editContents]); // ................... how contined ???

      }

          }

        • 1. Re: I would like to find the object change and to move
          Sajeev Sridharan Level 4

          May be the below code will help you to proceed further,

           

          var xAxis, yAxis, pageNo;
          var diyalogWindow = app.dialogs.add();
          with(diyalogWindow){
            with(dialogColumns.add()){
                  with(borderPanels.add()){
                      with(dialogColumns.add()) {
                          staticTexts.add({staticLabel:"X-Axis Value (in points)"});
                          xAxis = textEditboxes.add();
                      }
                      with(dialogColumns.add()) {
                          staticTexts.add({staticLabel:"Y-Axis Value (in points)"});
                          yAxis = textEditboxes.add();
                      }
                   with(dialogColumns.add()) {
                      staticTexts.add({staticLabel:"Page"});
                      pageNo = textEditboxes.add();
                  }
               }
             }
          }
          
           if(diyalogWindow.show() == 1) {
              app.selection[0].move(app.activeDocument.pages[pageNo.editContents - 1]);
              app.selection[0].move([xAxis.editContents, yAxis.editContents]);
          }
          
          

           

          Vandy

          • 2. Re: I would like to find the object change and to move
            hamdifem Level 1

            https://forums.adobe.com/message/6714843#6714843

             

            this script

             

            app.selection  .paragraphs.everyItem (). spaceAfter = 1

             

            its make spaceafter = 1

             

            but how make

             

            1

             

            2

             

            3

             

            4

             

            5

             

            .

             

            .

             

            .

             

            Each click, I get a continuous increase

             

            2014-09-04 12:14 GMT+03:00 vandy88 <forums_noreply@adobe.com>:

             

                I would like to find the object change and to move  created by vandy88

            <https://forums.adobe.com/people/vandy88> in InDesign Scripting - View

            the full discussion <https://forums.adobe.com/message/6700008#6700008>