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: Wed, 9 May 2007 09:31:49 -0500 (CDT)
- Importance: Normal
Wayne,
That's a good idea. I'm trying to determine how to convert a spot color to
CMYK but can't seem to figure it out. I've been hunting around in the
dictionary and the CS2 scripting guide, but no luck so far. Do you happen
to know how to change a spot color to CMYK?
Thanks!
Stephan
>
> On 8. mai. 2007, at 23.08, stephan peterson wrote:
>
>> 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 (applescript-
>> email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> email@hidden
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
>
>
> Stephen,
>
> What is the output going to? I'm going to assume that RGB is the
> problem? If that is the case, could you not just try and get the
> script to check for spot colours and convert them to CMYK rather than
> spot? Or am I missing the point?
>
> Of course if you have colours that are spot colours pantone or made
> spot colours, you should be careful (anyway) about the colour
> conversion.
>
> Wayne Melrose
> _______________________________________________
> 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