Re: Height and Width of a GroupPicture in QuarkXPress 4.1
Re: Height and Width of a GroupPicture in QuarkXPress 4.1
- Subject: Re: Height and Width of a GroupPicture in QuarkXPress 4.1
- From: Hans Haesler <email@hidden>
- Date: Thu, 12 Dec 2002 11:12:10 +0100
On Thu, 12 Dec 2002, Samuel Nitsche wrote:
>
I have a problem with QuarkXPress 4.1
>
>
I want to get the bounds of a grouped picture, but found nothing to get
>
it. I only can get the bounds (or height and width) of a simple text or
>
picture box.
Hi Samuel,
I don't quite understand your problem. With 'the bounds of a grouped picture'
do you mean the bounds of the image file or the bounds of the picture box(es)?
If you're after the bounds of the group then select it and run this:
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
set {y1, x1, y2, x2} to bounds as list
end tell
end tell
---
If you need the bounds of the image then select just one picture box.
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
tell image 1
set {x1, y1, x2, y2} to bounds
end tell
end tell
end tell
---
Note: the y and x values are inversed.
But be careful: using the bounds of an image works only if it is an EPS file
(or a TIFF which has a resolution of a multiple of 72).
BTW, I hope that you're using version 4.11. Else get the update.
QXP 4.1 is no good for scripting.
---
Hans Haesler <email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.