Re: Change Quark fonts attributes
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