• 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: CMYK in QuarkXpress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CMYK in QuarkXpress


  • Subject: Re: CMYK in QuarkXpress
  • From: Hans Haesler <email@hidden>
  • Date: Thu, 10 May 2001 21:57:43 +0200

On Thu, 10 May 2001, Alberto Salvagnini wrote:

>I am looking, better trying to get the CMYK numbers from a color
>(or from all colors in a Quark Document)
<snip>
>but if I write:
>get CMWY color value of color spec "Cyan" of document 1 I get the result:
>+data cCMY0000FFFF00000000;

Hi Alberto,

you don't say which version of QXP you're using.

You say 'CMWY', but I think this should be 'CMYK', and you should get
the result {65535, 0, 0, 0}. This looks like a list but its class is
'CMYK color'. So, it must be coerced to a list and then converted to
the percentages you're familiar with:
---
tell document 1 of application "QuarkXPress 4.11"
set pList to {}
set cmykList to (CMYK color value of color spec "Cyan") as list
repeat with x in cmykList
set end of pList to my convToPercent(x)
end repeat
pList -->{100.0, 0.0, 0.0, 0.0}
--
--do your stuff
--
end tell

on convToPercent(x)
set x to (round ((x / 65.535) + 0.5) rounding down) / 10
return x
end convToPercent
---


>The other thing is: why do I have to select a box (anybox) to get the
>>properties of every color of a dokument ?

Again, I have no problem for getting the properties. I don't have
to select any box:
---
tell application "QuarkXPress 4.11"
get properties of every color spec of document 1
end tell
---
This works. No problem at all.

Regards,

Hans

---
Hans Haesler | email@hidden


  • Prev by Date: RE: Newbie question
  • Next by Date: Re: UnGrouping of boxes
  • Previous by thread: Re: CMYK in QuarkXpress
  • Next by thread: Why won't this parse?
  • Index(es):
    • Date
    • Thread