Quark style spec help
Quark style spec help
- Subject: Quark style spec help
- From: Steve Suranie <email@hidden>
- Date: Thu, 21 Jun 2001 11:44:27 -0400
Hello Quark/AS gurus
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: ....
I'm using the code directly from Shirley Hopkins book AppleScripting
QuarkXPress
Much thanks in advance
Steve
>
----------
>
From: email@hidden
>
Reply To: email@hidden
>
Sent: Thursday, June 21, 2001 3:42 AM
>
To: email@hidden
>
Subject: applescript-users digest, Vol 2 #787 - 8 msgs
>
>
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