Re: Illustrator 9 & Group Items
Re: Illustrator 9 & Group Items
- Subject: Re: Illustrator 9 & Group Items
- From: Shane Stanley <email@hidden>
- Date: Mon, 16 Jul 2001 08:46:14 +1000
On 16/7/01 1:16 AM +1000, Jason Bourque, email@hidden, wrote:
>
I am trying to get the width & height of every page item as a group in
>
illustrator 9 and the resize the document to that found width & height.
I'm not sure why you'd try this; you can't change the size of the document,
and it's pretty much irrelevant anyway.
>
>
So my current direction for this is to create a new group and move every
>
page item into it.
>
>
>
Tell app "illustator"
>
>
Tell document 1
>
>
Make new group item at beginning of layer 1 with properties{name:"Group
>
Crop"}
>
>
Move every page item to beginning of group item "Group Crop"
>
>
Set groupWidth to width of group item "Group Crop"
>
Set groupHeight to height of group item "Group Crop"
>
>
End tell
>
End tell
>
>
>
>
This doesn't work.
>
>
I am going about this wrong?
"every page item" includes the group you've created; thus, you're trying to
include a group in itself. And the move command seems to prefer groups
referred to by index or reference. Even then, I doubt that it will work;
"every page item" effectively includes items that are part of other groups
more than once.
The geometric or visible bounds of a document should give you the bounds of
the _illustration_, but they seem to insist on returning 0 or a negative
value for the bottom left corner.
--
Shane Stanley, email@hidden