• 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 Newbie Colours question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illustrator Newbie Colours question


  • Subject: Re: Illustrator Newbie Colours question
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 12 Mar 2003 08:52:18 +1100

On 11/3/03 11:51 PM +1000, Mark Settle, email@hidden, wrote:

> Here9s a script I wrote for testing purposes:
>
> tell application "Adobe Illustrator 10"
> set newdoc to make new document
> set NewSpot to make new spot in document 1 with properties {color
> type:spot color, name:"PANTONE Whatever", color:{cyan:100.0, magenta:100.0,
> yellow:0.0, black:0.0}}
> make new rectangle in newdoc with properties {name:"Rect"}
> set selection of document 1 to {page item "Rect" of document 1}
> set fill color of path item "Rect" to spot of newdoc whose name is
> "PANTONE Whatever"
> end tell

Try something like this (there's no need to select anything):

tell application "Adobe Illustrator 10"
set newdoc to make new document
tell document 1
set NewSpot to make spot at beginning with properties {color type:spot
color, name:"PANTONE Whatever", color:{cyan:100.0, magenta:100.0,
yellow:0.0, black:0.0}}
make new rectangle at beginning with properties {name:"Rect"}
set fill color of path item "Rect" to {spot:NewSpot, tint:100}
end tell
end tell

--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Illustrator Newbie Colours question (From: Mark Settle <email@hidden>)

  • Prev by Date: Scripting color depth change in Mac OS X
  • Next by Date: Re: QXP5 and Layers
  • Previous by thread: Illustrator Newbie Colours question
  • Next by thread: Re: way to get XML attributes
  • Index(es):
    • Date
    • Thread