• 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
Changing Quark text styles and fonts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing Quark text styles and fonts


  • Subject: Changing Quark text styles and fonts
  • From: "Dr Digby L. James" <email@hidden>
  • Date: Wed, 19 Jan 2005 16:59:55 +0000

Title: Changing Quark text styles and fonts
I regularly need to change italic, bold and bold/italic text into the correct italic, etc. font as the font family used isn't recognised as such and applying italic, etc. results in faux characters. Up to now I have just used Quark's Find/Change dialog and done it manually, but I'd like to Applescript it to save time, and also so a colleague (who's a great designer but useless with software) will be able to do it easily too.

From previous experience and reading posts here and checking web-sites I thought the following would work:

tell application "QuarkXPress"
   tell current box
      try
         set properties of (text style ranges of stories whose font is {"Sabon OS Figs"} ¬
            and style contains {italic, bold}) to {font:"Sabon MT ItalicOSF", ¬
               on styles:{plain}, off styles:{italic, bold}}
      end try
   end tell
   display dialog "Script completed"
end tell

Clearly (or I wouldn't be asking!) this doesn't work. I've also tried "if" statements and looping tgrough the number of text style range, all to no avail. The only one that slightly works is to go word by word or character by character (set properties of every character whose . . .). But all that does is to change the font of the *last* instance. And it doesn't set the style to plain, only change the font.

I'm using it on a single text box in a file I need to get this to work on, but it will eventually, once working, run document wide.

I'm sure the Applescript experts will point out I have made a childishly simple mistake, but I've got to the stage that I'm running out of hair to pull out!

Any help would be greatly appreciated.
--
_________________
Dr Digby L. James
Quinta Press
http://www.quintapress.com
_________________
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Delaying a script
  • Next by Date: Re: title of window 1 as text
  • Previous by thread: Re: Creating printers
  • Next by thread: Re: Changing Quark text styles and fonts
  • Index(es):
    • Date
    • Thread