• 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
Re: Quark style spec help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Quark style spec help
      • From: "Bob.Kalbaugh" <email@hidden>
  • Prev by Date: Compile a string?
  • Next by Date: Re: Reading MS Word via AS ->crash??
  • Previous by thread: Quark style spec help
  • Next by thread: Re: Quark style spec help
  • Index(es):
    • Date
    • Thread