• 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: Sat, 23 Jun 2001 09:38:53 +1000

On 23/6/01 9:00 AM +1000, Bob.Kalbaugh, email@hidden, wrote:

> Seems that using <<classCATR>> is a *buggy* way of creating new char specs.

No, it's not buggy -- it works fine. It just shouldn't have to be like that.

> Just curious though. I tried the following:
>
> tell application "QuarkXPress 4.1"
> activate
> make new document at beginning
> tell document 1
> make new character spec at end with properties {name:"charTest",
> character attributes:{font:"Helvetica", size:"18 pt", color:"Red"}}
> end tell
> end tell
>
> and I really thought it would work because it parallels the syntax for
> creating *style* specs with prop's in place, - but it generated
>
> error - "QuarkXPress 4.1 can't get document 1"
> -- it creates the style but doesn't set the char attributes
>
> So then what, may I ask, *is* the proper syntax to use for creating new char
> specs? I'm not sure if I'm comfortable exploiting... "YAQB".

Depends on your definition of proper. If you mean what *should* work, then
it's as in your example that failed; if you mean what *does* work, it's
using <<class CATR>>.

And don't worry too much about exploiting bugs in QuarkXPress -- many of
them have been there since the app was first made scriptable.

--
Shane Stanley, email@hidden


References: 
 >Re: Quark style spec help (From: "Bob.Kalbaugh" <email@hidden>)

  • Prev by Date: Re: The Need for Speed: Finding Entourage contacts by display name or nickname
  • Next by Date: say command, out of memory?
  • Previous by thread: Re: Quark style spec help
  • Next by thread: Reading MS Word via AS ->crash??
  • Index(es):
    • Date
    • Thread