0 Replies Latest reply on Jan 9, 2010 8:49 AM by jeffkr

    CS4 no longer allows me to markup highlighted text?

    jeffkr

      I am not sure why this code used to work in CS2 and not in CS4.
      I used to be able to tag selected (with text tool) text with a markup tag using the below script. It was simple and worked placing tag markers around the highlighted text. However with CS4 I receive the error… "Adobe InDesign CS4 got an error: Cannot change the element to be associated with this object. Try creating a new element."
      Can anybody PLEASE help me out?

      Thanks in advance,

      Jeff

       

      tell application "Adobe InDesign CS4"
          activate
          tell document 1
              tell XML element 1
                  set t to make XML element with properties {markup tag:"expirationdate"}
              end tell
              tell selection to markup using t
          end tell
      end tell