1 Reply Latest reply on Apr 8, 2008 7:09 AM by (mattnewell)

    Can't set label

      In CS2 I used this line
      tell application "Adobe InDesign CS2"
      set properties of every text frame whose label starts with "dude" to {label:"sweet"} of document 1
      end tell

      But in CS3 a strange error occurs

      tell application "Adobe InDesign CS3"
      set properties of every text frame whose label starts with "dude" to {label:"sweet"} of document 1
      end tell

      Now the weird part is if you just look for page items or text frames that start with label "bla bla" it works perfect but you can't set the label to anything.
        • 1. Re: Can't set label
          Level 1
          Nevermind this fixed it

          tell application "Adobe InDesign CS3"
          tell document 1
          set label of every text frame whose label starts with "dude" to "sweet"
          end tell
          end tell

          Strange I had to dumb down the code for it to work. In CS2 it see the property approach always worked.