• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Height, width and Resizing multiples in Quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Height, width and Resizing multiples in Quark (From: Xandra Lee <email@hidden>)

  • Prev by Date: oh no
  • Next by Date: Re: Quark selections
  • Previous by thread: Height, width and Resizing multiples in Quark
  • Next by thread: FADE DEAD
  • Index(es):
    • Date
    • Thread