Re: Quark style spec help
Re: Quark style spec help
- Subject: Re: Quark style spec help
- From: Shane Stanley <email@hidden>
- Date: Sat, 23 Jun 2001 09:38:53 +1000
On 23/6/01 9:00 AM +1000, Bob.Kalbaugh, email@hidden, wrote:
>
Seems that using <<classCATR>> is a *buggy* way of creating new char specs.
No, it's not buggy -- it works fine. It just shouldn't have to be like that.
>
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".
Depends on your definition of proper. If you mean what *should* work, then
it's as in your example that failed; if you mean what *does* work, it's
using <<class CATR>>.
And don't worry too much about exploiting bugs in QuarkXPress -- many of
them have been there since the app was first made scriptable.
--
Shane Stanley, email@hidden