• 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: Illustrator CS, make new spot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illustrator CS, make new spot


  • Subject: Re: Illustrator CS, make new spot
  • From: "Shane Stanley" <email@hidden>
  • Date: Thu, 11 Nov 2004 17:30:07 -0500

On Thu, 11 Nov 2004 15:18:59 -0600, Jake Pietrykowski wrote:

>I've beaten my head against the wall on this one. I've come to determine
>that Illustrator CS can NOT create a new spot color via AppleScript. What I
>get as a result, is a color swatch that is named correctly, but is set to a
>process color. If I replace the class 'spot' with class 'swatch' in my
>script, the only difference I notice is that the 'Global' color option is
>selected when I use class 'spot' and when I use class 'swatch' I get a
>process color, without the 'Global' check box selected (in Swatch Options).

There's a spot property called "color type" that seems to have been left
out in CS's dictionary. Try this:

tell application "Illustrator CS"
	tell document 1
		make swatch at beginning with properties {color:{class:CMYK color info,
cyan:100, magenta:10, yellow:0, black:0}, name:"Some blue"}
		make spot at beginning with properties {color:{class:CMYK color info,
cyan:10, magenta:100, yellow:0, black:0}, name:"Some spot", color type:
spot color}
		make spot at beginning with properties {color:{class:CMYK color info,
cyan:10, magenta:10, yellow:100, black:0}, name:"Global process color",
color type:process color}
	end tell
end tell

--
Shane Stanley  <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:

This email sent to email@hidden

References: 
 >Illustrator CS, make new spot (From: Jake Pietrykowski <email@hidden>)

  • Prev by Date: Re: GUI Scripting and Acrobat 6 Pro
  • Next by Date: computing 20! all the way
  • Previous by thread: Re: Illustrator CS, make new spot
  • Next by thread: creating a list of integers from a range
  • Index(es):
    • Date
    • Thread