2 Replies Latest reply on Mar 20, 2013 9:37 AM by leowoosh

    Looking for a script to operate solely on table strokes weight

    leowoosh

      Hello,

       

      I need to change all strokes with weight 0,3 pt in my document to 0,5 pt. There are other strokes with other weights, I just need to change the 0,3 ones specifically. Any scripts around for that?

       

      I have tried Jongware's script, where you can supposedly replace color, color tint and weight of strokes in all tables. But that script seems to find strokes based on their colour rather then their weight (I think). Besides that, the script runs forever (Indesign doesn't crash, but I get the clock icon for hours) and never stops unless I forcebly end Indesign.

       

      Any help is much apreciated.

       

      Thanks a mil.

        • 1. Re: Looking for a script to operate solely on table strokes weight
          rob day Adobe Community Professional & MVP

          If you are using OSX try this AppleScript, which changes table strokes (not object strokes):

           

           

          tell application "Adobe InDesign CS6"

             

              set currWeight to 0.3

              set newWeight to 0.5

             

              set mytablelist to every cell of every table of every text frame of active document

              repeat with x from 1 to (count items of mytablelist)

                  set myCell to item x of mytablelist

                  if the bottom edge stroke weight of myCell is currWeight then

                      set bottom edge stroke weight of myCell to newWeight

                  end if

                  if the diagonal line stroke weight of myCell is currWeight then

                      set diagonal line stroke weight of myCell to newWeight

                  end if

                  if the left edge stroke weight of myCell is currWeight then

                      set left edge stroke weight of myCell to newWeight

                  end if

                  if the right edge stroke weight of myCell is currWeight then

                      set right edge stroke weight of myCell to newWeight

                  end if

                  if the top edge stroke weight of myCell is currWeight then

                      set top edge stroke weight of myCell to newWeight

                  end if

              end repeat

          end tell

          • 2. Re: Looking for a script to operate solely on table strokes weight
            leowoosh Level 1

            You sir, are THE man.

             

            My most sincere thanks ;]