Re: Quark style spec help
Re: Quark style spec help
- Subject: Re: Quark style spec help
- From: Shane Stanley <email@hidden>
- Date: Fri, 22 Jun 2001 08:22:54 +1000
On 22/6/01 1:44 AM +1000, Steve Suranie, email@hidden, wrote:
>
Can someone check out this code and tell me why I keep getting an error
>
message. I am scripting QX 4.11
>
>
tell application "QuarkXPress(tm) 4.11"
>
activate
>
make new document
>
tell document 1
>
set stylelist to (get name of every style spec)
>
if "NoDate" is not in stylelist then
>
make new style spec at end with properties
>
{name:"NoDate"}
>
set properties of style spec "NoDate" to {text and
>
paragraph attributes:,
>
{font:"Helvetica", size:"18 pt",
>
color:"Red", rule above:,
>
{rule on:true, left indent:"0p",
>
right indent:"0p", text length:false, width:"2 pt", color:"black"} ,
>
}}
>
end if
>
end tell
>
end tell
>
>
Error Message:
>
>
QuarkXPress 4.11 got an error. Can't set properties of style spec "NoDate"
>
of document 1 to {text and paragraph attributes: ....
It's a (very bad) bug in 4.11; "text and paragraph attributes" is broken.
You can set your rule using "paragraph attributes", but the only way to set
the character-level stuff is to define a character style, and tell the style
sheet to use that.
--
Shane Stanley, email@hidden