• 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: Change Quark fonts attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change Quark fonts attributes


  • Subject: Re: Change Quark fonts attributes
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 11 Sep 2001 20:48:43 +1000

On 11/9/01 8:08 PM +1000, Olivier Berquin, email@hidden, wrote:

> I would like to change the attributes of the "times" font. I've try this 2
> scripts but... they don't work
>
>
> -- 1
> tell document 1 of application
> "QuarkXPress Passport 4.11"
> activate
> set selection to null
> try
> tell every story
> set (properties of every text style range where font is ,
> "Times" and (style is italic and style is bold)) to ,
> {font:"BI Times BoldItalic", style:plain}
> set (properties of every text style range where font is ,
> "Times" and style is italic) to ,
> {font:"I Times Italic", style:plain}
> end tell
> end try
> end tell
>
> -- 2
> tell document 1 of application
> "QuarkXPress Passport 4.11"
> activate
> set selection to null
> try
> set style of (text style ranges of stories whose font is "Times" ,
> and style contains italic) to {font:"I Times Italic", ,
> off styles:{italic}}
> set style of (text style ranges of stories whose font is "Times" ,
> and style contains bold) to {font:"B Times Bold", ,
> off styles:{bold}}
> end try
> end tell

I think what you're trying to do is this:

tell application "QuarkXPress 4.11"
tell document 1
try
set properties of every text style range of every story whose font is
"Times" and style contains bold to {font:"B Times Bold", style:bold}
end try
try
set properties of every text style range of every story whose font is "B
Times Bold" and style contains italic to {font:"BI Times BoldItalic",
style:italic}
end try
try
set properties of every text style range of every story whose font is
"Times" and style contains italic to {font:"I Times Italic", style:italic}
end try
end tell
end tell

But you're fixing something that isn't really broken...

--
Shane Stanley, email@hidden


References: 
 >Change Quark fonts attributes (From: Olivier Berquin <email@hidden>)

  • Prev by Date: Re: Reality Checked (Argh! Down with Reality!)
  • Next by Date: Re: Open <file> using <application
  • Previous by thread: Change Quark fonts attributes
  • Next by thread: Re: when opening a selection, is there any way to specify the app
  • Index(es):
    • Date
    • Thread