Applescript, placing an image in a table cell in InDesign CC 2017 -
i attempting create script automatically inputs tabled/tabular slug @ base of indesign page - quite common query on internet , far have done cobbling bits of relevant script... creates table, inputs variables, find page size etc etc... however, i'm stuck when comes inputting logo - want input company logo 1 of table cells. users' hd location.
does have tips share on this? again, applescript indesign.
the content of cell text. need create rectangle , insert image there:
found on macscripter while ago - modify needs (especially image bounds - size/position)
set placedimage (choose file) string tell application "indesign cc 2017" tell document 1 tell table 1 of story 1 tell cell 1 set newimage make new rectangle @ insertion point 1 properties {label:"photo 1"} set imagebounds geometric bounds of newimage set geometric bounds of newimage {item 1 of imagebounds, item 2 of imagebounds, (item 1 of imagebounds) + 24, (item 2 of imagebounds) + 18} end tell end tell place placedimage on newimage end tell end tell
Comments
Post a Comment