Re: Creating a box in Quark with a dashed line or frame.
Re: Creating a box in Quark with a dashed line or frame.
- Subject: Re: Creating a box in Quark with a dashed line or frame.
- From: Hans Haesler <email@hidden>
- Date: Fri, 25 May 2001 22:07:03 +0200
On Fri, 25 May 2001, Robert Seckendorf wrote:
>
I need to know if you can create a box (picture box) in Quark with "frame"
>
properties. I have scoured the dictionary for version 4.1 and cant seem to
>
find that property in the app. dictionary.
Robert,
the best source of information is... a sample box. Create, manually,
the box you'd like to generate by script. Select it, run this...
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
properties
end tell
end tell
---
... and look at the result. There you find everything you need to know
about the frame. The color is a long string, but all you have to put in
the list of the properties is: "...{color:"Cyan", ...". The rest is
already addressed by the "tell app", "tell document" lines.
If you don't define anything, i.e. you say just "make picture box at
beginning" then a square box (4 pt by 4 pt) is created with the default
properties of the picture box tool. Just add the properties you'd like
to change.
The following example creates a picture box with a dashed frame. It is
a little bit exaggerated, but if you don't want to color the gap then just
delete the corresponding commands.
---
tell document 1 of application "QuarkXPress 4.11"
tell page 1
make picture box at beginning with properties {bounds:{"4p", "4p", "10p", "20p"}, frame:{color:"Magenta", shade:100, gap color:"Cyan", gap shade:40, style:sparsely dashed line, width:2}}
end tell
end tell
---
>
By the way, are there any good reference books on Quark that aren't out of
>
print?
I've heard of one (and only?) book: "AppleScripting QuarkXPress" by
Shirley Hopkins (from Facespan Support):
mailto:email@hidden
Regards,
Hans
---
Hans Haesler | email@hidden