I have a script that places several images in boxes using script labels. I use the command, “fit myrect3 given content to frame” and that works great for all images but on. One image is larger than the box and I only want to show a portion of the image. Currently I move the image manually until I can only see the part of the image I want. The image is always formatted the same so I wanted to know if there is a command to insert an image in a box with an offset so only part of the image shows?
What program are you scripting?
tell application "Adobe InDesign CS3"
-- from the top left corner of bounding box
set LeftOffset to -0.25 -- (from the top left edge move to the left -.25)
set TopOffset to -0.3613 -- (from the top left edge move up -0.3613)
move myImageToMove by [LeftOffset, TopOffset]
Browser: Safari 523.12
Operating System: Mac OS X (10.4)
Thanks, Just what I needed.