Delete Color from Quark
Delete Color from Quark
- Subject: Delete Color from Quark
- From: John LaBree <email@hidden>
- Date: Thu, 25 Jan 2001 17:40:10 -0500
I am trying to put together a script that will replace certain specific
colors in a Quark 4.04 document with other specific colors. I can create new
colors in Quark well enough, but I am having no luck at deleting colors. Can
anyone out there start me in the right direction?
Here is what I have so far:
set DeadName to "zColorBlue"
tell document 1 of application "QuarkXPress(tm)"
set SpecList to (get name of every color spec)
if DeadName is in SpecList then
delete color spec DeadName
else
display dialog "The color" & " " & "\"" & DeadName & "\"" & " " &
"is,
not in this Doc's Color Table."
end if
end tell
What seems to be happening is that zColorBlue is being deleted, however
Quark is erroring out. The following is from the Event Log:
tell application "QuarkXPress(tm)"
get name of every color spec of document 1
delete color spec "zColorBlue" of document 1
--> QuarkXPress(tm) got an error: Read-only property cannot be
changed.
I am completely lost as to where the error is coming from. Does anyone out
there have any suggestions?
TIA,
John LaBree
Imaging Center Manager
G.Neil Direct Mail, Inc.