Re: Changing Registration colored text to black in Quark
Re: Changing Registration colored text to black in Quark
- Subject: Re: Changing Registration colored text to black in Quark
- From: Juergen May <email@hidden>
- Date: Tue, 21 Jan 2003 09:22:25 +0000
>
I'm trying to write a script that will look at each text box in a large Quark
>
document and change any text that is set to "Registration" color to "Black".
>
>
I can globally change all text to black, but I want the script to determine
>
what the color is to start with.
>
>
What I've been trying doesn't work:
>
>
if properties of story 1 of text box 1 of document 1= B,
>
{color:"Registration"} then
>
set properties of story 1 of text box 1 of document 1 to {color:"Black}
>
end if
>
>
any help would be great!
>
Thanks
>
David DuBois
>
email@hidden
This works for me...
--
set oldColor to "Registration"
set newColor to "Black"
tell application "QuarkXPress"
tell document 1
try
tell every text box to ,
tell (every text style range whose name of color is oldColor)
to set color to newColor
end try
end tell
end tell
--
There may be a more elegant way of doing this, but it works and it's VERY
quick too!
Hope this helps.
Juerg
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.