Re: Quark Color, get list and apply to text?
Re: Quark Color, get list and apply to text?
- Subject: Re: Quark Color, get list and apply to text?
- From: Pat Cannon <email@hidden>
- Date: Mon, 14 May 2001 20:01:18 -0500
>
I am try to get used colors from Quark, list them in a text box and apply
>
the color to the color name in the text box.
>
Could somebody help me out with this one?
>
Thanks!
>
>
Marty Brandt
>
email@hidden
Marty,
I don't know offhand how to get just the used colors, but how I make a list
of spot colors; maybe this'll help some (, is new line):
tell application "QuarkXPress 4.11"
tell current page
set spotColors to ,
(name of (every color spec of document 1 whose separation is false))
set AppleScript's text item delimiters to return
set colorNames to spotColors as text
set AppleScript's text item delimiters to {""}
set tagBounds to {0.5, 0.5, 2, 2} -- (or whatever)
make text box at beginning with properties ,
{bounds:tagBounds, color:null, name:"Spot Color List"}
tell text box "Spot Color List"
tell story 1
set contents to colorNames
set size of every paragraph to 10
set leading of every paragraph to 10
repeat with n from 1 to count of spotColors
set color of paragraph n to (item n of spotColors)
end repeat
end tell
end tell
end tell
end tell
Good luck,
Pat
Patrick Neal Cannon -------------------------- email@hidden
The bottom half of the glass is full of some clear liquid (maybe gin).
And the liquid's not boiling off, so the top half must be full of air.
----------------- So: the glass is completely full. ----------------