tell application "Adobe InDesign CS4"
tell active document
set C to class of selection
if C is in {insertion point, character, word, paragraph, text} then
set PS to parent story of selection
set TF to text frames of PS
end if
end tell
end tell
Jag kör ovanstående kod med markören i en text i InDD så att class of selection är insertion point.
Jag får ut parent story (PS), men text frames (TF) blir list of 0 items. Fungerar text frames of parent story annorlunda i CS4 än i CS2 där detta fungerar?