Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
- Subject: Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
- From: "stephan peterson" <email@hidden>
- Date: Tue, 8 May 2007 16:08:52 -0500 (CDT)
- Importance: Normal
Shane,
Thanks for the response. For some reason I didn't get your response and
had to look it up in the archive.
Anyway, yes, I'm aware that documents are either CMYK or RGB. I'm already
doing a check to make sure that the documents I'm dealing with are CMYK
for this workflow. If I open the document in question in Illustrator CS it
barks about being mixed mode which is great, but CS2 just opens the
document. If it at least barked about the mode I could try and trap that.
What I'm working on involves taking a Illustrator CS file and opening it
in CS2 and then eventually saving it out as a PDF. It seems that CS2 is
missing or doesn't care the document is mixed mode. The system I'm
delivering the PDF to for further processing does care and I need to kick
these kinds of documents back to the user for them to fix.
As I stated before:
Here's some code to get the properties of a swatch:
tell application "Adobe Illustrator CS2"
get properties of swatch 3 of current document
end tell
Here are the results:
{name:"Template", color:{class:spot color info, tint:100.0, spot:spot 1 of
document 1 of application "Adobe Illustrator CS2"}, container:document 1
of application "Adobe Illustrator CS2", best type:reference, default
type:reference, class:swatch, index:3}
As you can see it lets you know that it's a spot color, but not which
type. Any suggestions?
Thanks,
Stephan
On 5/5/07 6:46 AM, "stephan peterson" <email@hidden> wrote:
> I'm trying to determine whether a spot color in an Illustrator document is
> an RGB spot or CMYK spot.
Illustrator documents are all either fully CMYK or fully RGB, so you can
simple ask or the color space of the document.
--
Shane Stanley <email@hidden>
AppleScript Pro Denver, June 2007 <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden