I am attempting to move specific text frames created though an XML import to the bottom of the page (bottom pasteboard (5,5) is just to see it move then figure out how to put it at the bottom)) as Folio and slug info.
I can select the text associated with an XML element “VTag” but not the Text frame. Any help would be appreciated.
Thanks
property myHoHoV : {}
on myLoopLoop(myElement)
tell application "Adobe InDesign CS4"
tell active document
set moreElement to every XML element of myElement
repeat with x from 1 to (count of moreElement)
set em1 to item x of moreElement
select em1
if (name of markup tag of em1 is "VTag1") then
set em2 to em1
set properties of view preferences to {horizontal measurement units:inches, vertical measurement units:inches, ruler origin:page origin}
set transform reference point of layout window 1 to top left anchor
select text of em2
tell application "Adobe InDesign CS4"
move text of em2 to {5, 5}
end tell
end if
tell me to myLoopLoop(item x of moreElement)
end repeat
end tell
end tell
end myLoopLoop