0 Replies Latest reply on Feb 12, 2015 2:56 AM by johnp45247251

    set xml element for table

    johnp45247251 Level 1

      Hi guys,

      I am new to indesign scripting using applescript.

      my code is shown in below, my problem is can't set xml element for table



      tell application "Adobe InDesign CS6"

              tell active document

                  set rootele to associated XML element of story 1

                  if rootele = nothing then

                      set rootele to XML element 1

                  end if

                  tell story 1

                      select text 1

                      set markup tag of selection to "table" -----------------> this is my problem please help me.

                                end tell

              end tell

          end tell



      this code is right or not. please help me.