• 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: make a style in Quark 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: make a style in Quark 4


  • Subject: RE: make a style in Quark 4
  • From: "Feldman, Don" <email@hidden>
  • Date: Fri, 16 Apr 2004 12:00:18 -0400
  • Thread-topic: make a style in Quark 4

Thanks very much,

On my computer with Quark 4.11, Applescript 2.0 and OS10.3.3, I still have problems with Quark 4. When I try using the line

make new character spec at end with properties {name:"TryChar", +class CATR;:{size:"14", font:"times"}}

I get the Applescript Error message, "Read-only property cannot be changed."

However, I have a copies of Quark 5 and Quark 6 on my computer. Either one completes the operation using the simplier form

make new character spec at end with properties {name:"TryChar", size:"14", font:"times"}

as you suggested it would, so I can then

make new style spec at end with properties {name:"TryPara", character style:character spec "TryChar"}

Don Feldman







> ----------
> From: Luca BASSINI
> Sent: Thursday, April 15, 2004 5:51 PM
> To: Feldman, Don
> Cc: email@hidden
> Subject: Re: make a style in Quark 4
>
> On 15/apr/04, at 21:46, Feldman, Don wrote:
>
> > I'm just curious. Can you write an applescript that makes a Character
> > and Paragraph style sheet in Quark 4.11 or later? I have something
> > like the following, which doesn't work in mind.
> >
> >
> > tell application "QuarkXPress(tm) 4.11"
> > tell document 1
> > make new character style with properties {name:"HarveyChar",
> > size:"14", font:"times"}
> > make new paragraph style with properties {name:"HarveyPara", based
> > on:"HarveyChar"}
> > end tell
> > end tell
>
> Dear Don,
>
> it's possible to do what you'd like to do... But in your code there are
> some sintax errors ;-)
>
> The right code should be this:
>
> tell application "QuarkXPress Passport> (tm)> 4.11"
> tell document 1
> make new character spec at end with properties {name:"HarveyChar",
> size:"14", font:"times"}
> make new style spec at end with properties {name:"HarveyPara",
> character style:"HarveyChar"}
> end tell
> end tell
>
> When you are planning to make a new character style you have to think
> of a character spec, when you are planning to make a new paragraph
> style you have to think of a style spec...
>
> BTW, you have to point your attention to another thing. When you have
> to build a new character spec on QuarkXPress 4.11, applescript
> implementation doesn't work as expected... But there is - fortunately -
> a workaround: you can access to the raw event code +class CATR; for
> setting the character and text attributes of a character spec.
>
> So this line:
>
> make new character spec at end with properties {name:"HarveyChar",
> size:"14", font:"times"}
>
> has to be changed in this way:
>
> make new character spec at end with properties {name:"HarveyChar",
> +class CATR;:{size:"14", font:"times"}}
>
> I hope this could help ;-)
>
> Ciao
> Luca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Illustrator 10 - font list, font property on the text item?
  • Next by Date: Re: make a style in Quark 4
  • Previous by thread: Re: make a style in Quark 4
  • Next by thread: Re: make a style in Quark 4
  • Index(es):
    • Date
    • Thread