QXP and changing text attributes
QXP and changing text attributes
- Subject: QXP and changing text attributes
- From: Hellum Timothy <email@hidden>
- Date: Wed, 6 Jun 2001 12:46:49 -0400
Hello all,
This very likely has a simple solution, but I'm having trouble getting the
issue worked out.
I would like to be able to have a script check a QXP doc for instances of
a word, change the font's attributes (bold, size, etc) and save the document
with replacing. What I would like to avoid, is the script using the default
"fake" bold attribute and actually use the font's alternate bold
characterization, such as Quorum Book to Quorum Bold.
My script so far follows, but is returning the error: "Can't set font of
selection to "Quorum Bold" :
tell application "QuarkXPress(tm) 4.1"
activate
(*"ScriptMaster XT active"*)
open "Photo 4:Desktop Folder:Test File"
find and replace document 1 all "chequing" by "chequeing" with whole word
set font of selection to "Quorum Bold"
set color of selection to color spec "Red"
save document 1 in file "Photo 4:Desktop Folder:Test File" with replacing
without template and include preview
close document 1
end tell
Anyone have any ideas?
Many thanks,
Timothy
____________________________________
"A generation that gets impatient when a Web page
takes more than a few seconds to appear is not going
to waste its time on a government that's not able to
produce real solutions to real problems."
- Andrei Cherny
____________________________________
Photodesk
The Globe & Mail
www.globeandmail.ca