• 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: Luca BASSINI <email@hidden>
  • Date: Thu, 15 Apr 2004 23:51:53 +0200

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 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.


References: 
 >make a style in Quark 4 (From: "Feldman, Don" <email@hidden>)

  • Prev by Date: I hate Quark!
  • Next by Date: Re: I hate Quark!
  • Previous by thread: make a style in Quark 4
  • Next by thread: RE: make a style in Quark 4
  • Index(es):
    • Date
    • Thread