Change color of text boxes in Quark

Hi to you all!!
I have a text block in Quark, in which I have added smaller text boxes with color fill 0.40.100.25 (in CMYK)
Does anyone know how I can change that color to 0.90.90.30 using AppleScript??
There are several boxes with the same color and I want to change them all together, if it's possible...

Thank you
Nick

1.6 GHz PowerMac G5, Mac OS X (10.4.7), 1.25 GB RAM

Posted on Jul 20, 2006 8:59 AM

Reply
10 replies

Jul 21, 2006 7:09 AM in response to Nikos Var

Hi again

Try this to start with. I'm not sure if this works with Quark 4, but I have tested it with Quark 3. As long as the colour is named (which I suspect it will be):

tell application "QuarkXpress™" -- you may need to change the trade mark sign or otherwise identify Quark 4
set color of text box 1 of document 1 to "Muddy Brown"
end tell


If you have many text boxes, you can use this:

tell application "QuarkXpress™" to tell document 1 to set color of every text box where its color is "Cyan" to "Light Mauve"

(Again, you may need to change the name of the application.)

The CMYK colour values of the colour spec are returned thus: «data cCMY000000000ffff0000». It would take someone far cleverer than me to tell you how to define a CMYK colour from that.

H

Jul 21, 2006 7:39 AM in response to HD

Hi HD!

Problem solved!! I tried that script with0 "picture boxes" and its working too...
It's like this:

tell application "QuarkXPress PassportΣ 4.1" to tell document 1 to set color of every picture box where its color is "blue" to "red"

How can I have text boxes and picture boxes in the same script so that I don't have to use 2 separate scripts??

Is it like this?

tell application "QuarkXPress PassportΣ 4.1" to tell document 1 to set color of every picture box where its color is "red" to "blue"
tell application "QuarkXPress PassportΣ 4.1" to tell document 1 to set color of every text box where its color is "red" to "blue"


Thanks
Nick

Jul 21, 2006 1:19 PM in response to Nikos Var

Looks good to me! Why not try it? I can't, I'm away from Quark at the moment.

But this is tidier, and should have the same effect:

tell application "QuarkXPress PassportΣ 4.1"
tell document 1
set color of every picture box where its color is "red" to "blue"
set color of every text box where its color is "red" to "blue"
end tell
end tell


Happy weekend!


H

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Change color of text boxes in Quark

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.