Re: Indesign CS5 - getting width and height of selection?
Re: Indesign CS5 - getting width and height of selection?
- Subject: Re: Indesign CS5 - getting width and height of selection?
- From: Shane Stanley <email@hidden>
- Date: Wed, 08 Feb 2012 23:16:14 +1100
On 08/02/2012, at 11:10 PM, Håvard Graudo wrote:
> Thank you for the code, it does work, but I was hoping to just get the values without changing the items.
> There will be surprises with grouping across layers, items may belong to other groups etc.
>
> Skipping the MOVE part and only group and calculate (y2-y1, x2-x1) would reduce risk a bit, but it is still a roundabout way of getting the values:
>
> Since the values I am after are displayed in the Control Panel I was hoping to just pick them up from somewhere.
> If someone knows how to access that info I would appreciate it.
Your choices are to get the bounds of all the items and do the sums yourself, or use something like Jan's script, but after grouping (and getting the measurement) use undo rather than ungroup. That will avoid any change to groups and layers.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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