2 Replies Latest reply on Jul 17, 2008 12:09 PM by (SuperMacGuy)

    [AS CS3] getting the xml value?

    Level 1
      I'm having trouble returning the "Value" of my xml object. I can get all sorts of other attributes. I need to be able to return the value "123456". I must be missing something, or is this a real shortcoming?

      tell application "Adobe InDesign CS3"
      tell document 1

      get associated XML element of first page item
      --> XML element id 12 of XML element id 2 of document "Untitled-8"

      get XML attribute 1 of associated XML element of first page item
      --> XML attribute "TCnumber" of XML element id 12 of XML element id 2 of document "Untitled-8"

      get properties of (get XML attribute 1 of associated XML element of first page item)
      --> {value:"123456", parent:XML element id 12 of XML element id 2 of document "Untitled-8", index:1, name:"TCnumber", object reference:XML attribute "TCnumber" of XML element id 12 of XML element id 2 of document "Untitled-8"}

      get name of (get XML attribute 1 of associated XML element of first page item)
      -->TCnumber

      get index of (get XML attribute 1 of associated XML element of first page item)
      -->1

      get value of (get XML attribute 1 of associated XML element of first page item)
      --ERROR

      end tell
      end tell