Re: Quark Bounds Not Working Like it did
Re: Quark Bounds Not Working Like it did
- Subject: Re: Quark Bounds Not Working Like it did
- From: "email@hidden" <email@hidden>
- Date: Wed, 16 Dec 2009 09:17:59 -0800
Is this the line that errors?
> set {y1, x1, y2, x2} to (bounds of vBoxRef as list)
Quark may confused by your command, thinking you want the bounds of {vBoxRef}
Moving the parens makes it clear you want the bounds coerced into a list.
Try this:
> set {y1, x1, y2, x2} to (bounds of vBoxRef) as list
If that doesn't work try this:
set boxBounds to the bounds of vBoxRef
set boxBounds to boxBounds as list
set {y1, x1, y2, x2} to boxBounds
I haven't scripted Quark for a while but I know that bounds can be kind of tricky.
If you were to do this command:
log class of vboxRef
It wouldn't return 'list', which is what you need, but instead something like 'measurements rectangle'.
HTH,
ES _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden