• 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: Quark Color, get list and apply to text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. ----------------


References: 
 >Quark Color, get list and apply to text? (From: "marty brandt" <email@hidden>)

  • Prev by Date: Re: Scientific notation to text
  • Next by Date: Re: Writing large scripts
  • Previous by thread: Quark Color, get list and apply to text?
  • Next by thread: Re: Quark Color, get list and apply to text?
  • Index(es):
    • Date
    • Thread