• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Quark style spec help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: adding a paragraph - part 2
  • Next by Date: Re: MS Office 98 Crashes
  • Previous by thread: Re: MS Office 98 Crashes
  • Next by thread: Re: Quark style spec help
  • Index(es):
    • Date
    • Thread