QXP Placing an image to the bottom
QXP Placing an image to the bottom
- Subject: QXP Placing an image to the bottom
- From: Mark Bjærgager <email@hidden>
- Date: Mon, 10 Sep 2001 16:49:48 +0200
Now I'm back with yaqpq (yet another quarkxpress picture question)
When placing an image in a picture box, I want the image to be placed to
the bottom of the picture box.
I tried to do some math in QXP, but somehow the returned values are screwed
up (pardon my french)
Here's my script:
tell boxIndex
set bounds of image 1 to proportional fit
set boxHeight to height of bounds of it
set imgBounds to the bounds of image 1
set imgHeight to item 4 of imgBounds
set imgOffset to ((boxHeight as real) - imgHeight as real)
set offSet of image 1 to {imgOffset, 0}
end tell
But it returns some obscure valu (-38,41) which is wrong.
Is there some magic command that I can use ?
Thanks for your time.
All the best
Mark