Uable to access active page / new to scripting (AS)
tell application "adobe indesign cs5.5" tell active document make graphic line properties {geometric bounds:{watch2, watch3, watch4, watch1}, flip:vertical, applied object style:"crossout"} end tell end tell
hi,
i need write script draws line before selected text. far, have x1/y1 + x2/y2 coordinates narrowed down (left out in code keep question simple), , works fine now.
but:
i need draw line onto selected text, e.g. active textbox. when way (because im not talented @ scripting), line gets created on page 1, should alway land on current textbox.
can me out?
while guys on it:
• next question if works out be, how "group" line textbox behind?
• and: textbox contain more items 1 "crossed out", lines should group together. (not if want break textbox 5 lines, have 5 "housed" groups of lines)
hi,
it's whole textframe crossed out¿
try this:
tell application "adobe indesign cs5.5" tell active document set textframe item 1 of selection set currpage parent page of textframe set textframebounds geometric bounds of textframe set theline make graphic line @ currpage properties {applied object style:"crossout"} set anchor of path point 1 of path 1 of theline {item 2 of textframebounds, item 3 of textframebounds} set anchor of path point 2 of path 1 of theline {item 4 of textframebounds, item 1 of textframebounds} make group properties {group items:{textframe, theline}} end tell end tell
i don't understand :
• and: textbox contain more items 1 "crossed out", lines should group together. (not if want break textbox 5 lines, have 5 "housed" groups of lines)
hans-gerd claßen
p.s. did have in as-scripting guide¿
More discussions in InDesign Scripting
adobe
Comments
Post a Comment