Re: Delete Color from Quark
Re: Delete Color from Quark
- Subject: Re: Delete Color from Quark
- From: "Vince Jelenic" <email@hidden>
- Date: Thu, 25 Jan 2001 20:10:07 -0500
>
From: John LaBree <email@hidden>
>
>
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?
>
try this.
create a doc in quark, create a color named "junk"
then run this script. -- modify to suit
tell application "QuarkXPress"
set x to {}
tell document 1
repeat with i from 1 to count of color spec
set x to x & name of color spec i
end repeat
repeat with i from 1 to number of items in x
if item i of x is "junk" then delete color spec i
end repeat
end tell
end tell
seems you can only delete color specs by index now ??
------ Vince Jelenic says:
"The only way to really ensure server security is to lock it in a sealed
room with the power off."