• 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: Delete Quark colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete Quark colors


  • Subject: Re: Delete Quark colors
  • From: gturnquist <email@hidden>
  • Date: Fri, 26 Jan 2001 08:16:54 -0600

> Subject: Delete Color from Quark
> 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?


tell application "QuarkXPress 4.1"
tell document 1
delete color spec named "PANTONE 111 CVP"
end tell
end tell

This worked without erroring out.


  • Prev by Date: R23
  • Next by Date: Re: QuarkXpress find and replace with variables (new question)
  • Previous by thread: R23
  • Next by thread: Scripts for Remote Access in 9.1
  • Index(es):
    • Date
    • Thread