• 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: "Bob.Kalbaugh" <email@hidden>
  • Date: Fri, 22 Jun 2001 01:40:42 -0500

on 6/21/01 5:22 PM, Shane Stanley at email@hidden wrote:

> 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 ...
(snip)
>> 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,
I was playing around with Steves's script for a work-around (I'm not exactly
sure what I'm doing in QXP - but I like to play! *and* I'm trying to learn.)
After much trial and error I ended up with this working tidbit:

--
tell document 1 of application "QuarkXPress(tm)4.11"

set stylelist to (get name of every style spec)

-- one long line ;-) creates the character style
if "NoDate" is not in stylelist then
make new character spec at end with properties {name:"NoDate", +class
CATR;:{font:"Helvetica", size:"18 pt", color:"Red"}}
end if

-- one long line ;-) creates the prgrph style pointing it to character style
make new style spec at end with properties {name:"NoDate", character
style:"NoDate", paragraph attributes:{rule above:{rule on:true, width:"2
pt", color:"black", character style:character spec "NoDate"}}}

end tell
--

I know you are adept with QXP and AS and if you don't mind helping, what I'd
like to know is, am I going about this correctly by creating the character
spec with <<class CATR>>? I'm just fiddling around here and I couldn't
figure out how to create it any other way. Is there something I'm missing?
I guess I'm looking for some validation. ;-) I'm new to this stuff.

any feedback appreciated,
bob kalbaugh


  • Follow-Ups:
    • Re: Quark style spec help
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Quark style spec help (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Creating Entourage contacts (revisited)
  • Next by Date: Re: Quark style spec help
  • Previous by thread: Re: Quark style spec help
  • Next by thread: Re: Quark style spec help
  • Index(es):
    • Date
    • Thread