I am trying to place a variable text document into a a named text box in my document. I have been trying variations of this:
tell myDocument
set bodyPath to "Pub-TLD:Welcome Sections:2015:" & wtName & ":" & wtSTAB & "_TEXT.docx"
set theText to every item of all page items whose label is "Body"
tell insertion point of theText
place bodyPath without options
end tell
end tell
and this:
set wtBody to (Pub-TLD:Welcome Sections:2015:" & wtName & ":" & wtSTAB & "_TEXT.txt")
set contents of every text frame of myDocument whose label is "Body" to wtBody
with no success.
The paths and the variables of wtName & wtSTAB are correct because earlier in the scrip it places the photos from that directory fine.