Re: Height, width and Resizing multiples in Quark
Re: Height, width and Resizing multiples in Quark
- Subject: Re: Height, width and Resizing multiples in Quark
- From: Hans Haesler <email@hidden>
- Date: Tue, 28 Nov 2000 15:10:57 +0100
On Tue, 28 Nov 2000, Alixandra Leigh wrote:
>
I seem unable to access an box objects size expressed as size by height,
>
width.
Use 'height of bounds' and 'width of bounds'
>
Ideally I'd like to be able to say:
>
>
tell document 1
>
set height of (every picture box whose height it 24) to 36
>
end tell
>
>
but... there's no height or width properties for picture boxes
I've never done this and I don't think that the 'whose clause'
covers the height of bounds.
This works because there is no condition:
---
tell document 1 of application "QuarkXPress 4.11"
set height of bounds of (every picture box) to 36
end tell
---
But when you want to test the height then you must loop through them:
---
tell document 1 of application "QuarkXPress 4.11"
repeat with i from 1 to count of picture boxes
tell picture box i
if height of bounds as real = 24 then
set height of bounds to 36
end if
end tell
end repeat
end tell
---
This is pretty fast.
Hans
---
Hans Haesler | email@hidden