Re: changing the color of superscript text in Quark
Re: changing the color of superscript text in Quark
- Subject: Re: changing the color of superscript text in Quark
- From: Shane Stanley <email@hidden>
- Date: Thu, 13 Dec 2001 08:11:38 +1100
On 12/12/01 4:37 PM +1000, Elmer Banate, email@hidden, wrote:
>
I wan't to change the color of every text who is
>
superscript in a story/document. But my script change
>
not the color only it also change the style of the
>
text from surperscript to plain.
>
>
Is there anything wrong with my set command?
>
>
here is my script:
>
>
tell document 1 of application "QuarkXPress 4.11"
>
activate
>
set tool mode to drag mode
>
set selection to null
>
try
>
tell every story
>
set (properties of every text style range where
>
style is superscript) to {style:superscript,
>
color:"blue"}
>
end tell
>
on error
>
end try
>
end tell
When you use "style" to set styles like superscript in QXP, they act as
toggles, just like in the user interface (you hit the little bold icon, the
selection goes bold; hit it again, and it loses the emboldening).
Just cut out the reference to "style:superscript".
--
Shane Stanley, email@hidden