I have to compose and formatting text frame with data from DB.
I know how to solve this generating a txt file with InDesign tags and place it inside text frame but i’m curious if is possible to generate all in memory and apply at the end to text frame.
Something like:
tell application “Adobe InDesign CS6”
tell active document
set frameRef to item 1 of selection – this is only for example
tell insertion point -1 of frameRef
set applied paragraph style to “Title”
set contents to “First Title line” & return & “Second Title line”
end tell
tell insertion point -1 of frameRef
set applied paragraph style to “Text”
set contents to “Text line 1” & return & “Text line 2.”
end tell
end tell
end tell
But more reliable. Something like define properties of text frame where contents is defined by multiple definitions of contents and applied paragraph style for each content.
I don’t know if this is possible. Just and idea.
The target is to compose a text frame composed by multiple paragraphs each with it’s particular Style.
Hagi