• 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: Determine whether spot color is RGB or CMYK in Illustrator CS2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Wayne Melrose <email@hidden>
  • Date: Wed, 9 May 2007 19:07:08 +0200


On 9. mai. 2007, at 16.31, stephan peterson wrote:

Do you happen

to know how to change a spot color to CMYK?



OK this is a bit embarrassing, I haven't really complied anything too special for you here, but this might put you on the path.. I read in a AI CS scripting guide that you can "force" a document to open as CMYK or RGB.. I did not get that to work here.. So assuming your document is CMYK, (you might have to figure that bit out for CS2, if you do, let me know) and assuming you have the object selected (I imagine you're looping through every object somehow) here is something to help you with the currently selected item.. 

tell application "Adobe Illustrator"
        tell front document
                set theColor to get fill color of selection
                if class of theColor is spot color info then
                        set theSpot to spot of theColor
                        set fourcolour to color of theSpot
                        set fill color of selection to fourcolour
                end if
        end tell
end tell

Hope that helps.. 

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

References: 
 >Re: Determine whether spot color is RGB or CMYK in Illustrator CS2 (From: "stephan peterson" <email@hidden>)
 >Re: Determine whether spot color is RGB or CMYK in Illustrator CS2 (From: Wayne Melrose <email@hidden>)
 >Re: Determine whether spot color is RGB or CMYK in Illustrator CS2 (From: "stephan peterson" <email@hidden>)

  • Prev by Date: Replacing pages in Acrobat 7 and 6
  • Next by Date: Text and Unicode Text
  • Previous by thread: Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
  • Next by thread: Re: Determine whether spot color is RGB or CMYK in Illustrator CS2
  • Index(es):
    • Date
    • Thread