• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing Registration colored text to black in Quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Input for Upcoming Book
  • Next by Date: Re: SE2b GUI comments
  • Previous by thread: Re: Changing Registration colored text to black in Quark
  • Next by thread: SE2b GUI comments
  • Index(es):
    • Date
    • Thread