Re: Quark style spec help
Re: Quark style spec help
- Subject: Re: Quark style spec help
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Fri, 22 Jun 2001 18:00:54 -0500
on 6/22/01 12:50 AM, Shane Stanley at email@hidden wrote:
>
On 22/6/01 4:40 PM +1000, Bob.Kalbaugh, email@hidden, wrote:
>
>
> am I going about this correctly by creating the character
>
> spec with <<class CATR>>? I'm just fiddling around here and I couldn't
>
> figure out how to create it any other way. Is there something I'm missing?
>
>
No, you're not missing anything -- that's <<class YAQB>> (Yet Another Quark
>
Bug). I suspect it's old code that happens to still work -- there's no class
>
CATR in the QXP 4.1 dictionary (character attributes is CHAT).
Thank you, Shane,
Seems that using <<classCATR>> is a *buggy* way of creating new char specs.
Just curious though. I tried the following:
tell application "QuarkXPress 4.1"
activate
make new document at beginning
tell document 1
make new character spec at end with properties {name:"charTest",
character attributes:{font:"Helvetica", size:"18 pt", color:"Red"}}
end tell
end tell
and I really thought it would work because it parallels the syntax for
creating *style* specs with prop's in place, - but it generated
error - "QuarkXPress 4.1 can't get document 1"
-- it creates the style but doesn't set the char attributes
So then what, may I ask, *is* the proper syntax to use for creating new char
specs? I'm not sure if I'm comfortable exploiting... "YAQB".
cheers,
bob kalbaugh