Change Quark fonts attributes
Change Quark fonts attributes
- Subject: Change Quark fonts attributes
- From: Olivier Berquin <email@hidden>
- Date: Tue, 11 Sep 2001 12:08:00 +0200
Hi all,
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
TIA
Olivier.