I have figured out how to change a color spec in Quark from spot to process, from one CMYK value to another, etc, AND I have figured out how to delete a color from the color spec list. Deleting one changes anything colored with that color to black.
Is there a way to specify what color you want to to change to when you delete (like when you manually delete a color from the color list that is being used)??
I have a script that will check to see if a color exists in your Quark document, and then change it to a different name if it does exist. The problem is, if that color name already exists, I want to basically merge the two together. Again, this is simple doing it manually but I can’t figure out how to make the script do it.
Any ideas??
set VariableGreen to {65535, 0, 65535, 0}
tell application "QuarkXPress"
tell front document
set ListOfColors to name of every color spec
if "Variable Text" is in ListOfColors then
if "Black Variable" is in ListOfColors then
delete color spec "Black Variable" --and change anything colored "Black Variable" to "Variable Text" instead. This is the part I can't figure out
end if
repeat with x from 1 to the count of color spec
set ColorCheck to name of color spec x as string
if ColorCheck is "Variable Text" then
set properties of color spec ColorCheck to {name:"Black Variable", color type:CMYK type, CMYK color value:VariableGreen, separation:false}
exit repeat
end if
end repeat
end if
end tell
end tell
Model: Mac G5 OS 10.3.9
Operating System: Mac OS X (10.3.9)