Indesign fitting image after placing
I've gotten pretty far with using frame fitting options on image frames that are "loose" on a layout. But for image frames that are anchored in text is where I am failing, though Indesign does not present an error.
I start with a document with some text. And I anchor a labeled image frame into a certain point in the text.
I can place the image, but scaling and the frame fitting options just don't do anything that I can tell.
set imgValue to "Assets:Signatures:AC_Vierra_sig1.tif"
tell application "Adobe InDesign CS4"
tell document 1
set allRect to (every rectangle of every story whose label is "CS46Signature")
if (count of allRect) > 0 then
repeat with thisRect in allRect
tell thisRect
set fitting alignment of frame fitting options to bottom left anchor
place imgValue
redefine scaling to {1.0, 1.0}
end tell --ax
end repeat --drill down into img frames in text
end if --allRect not empty
end tell --theDoc
end tell --app
I've tried different combinations of these and they fail without error. What would you do given anchored image frames? thanx, sam