• 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: Creating shapes in Illustrator [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating shapes in Illustrator [solved]


  • Subject: Re: Creating shapes in Illustrator [solved]
  • From: Ken Tozier <email@hidden>
  • Date: Sat, 6 Oct 2007 22:20:57 -0400

Never mind. I managed to find an old script that drew an ellipse

set x to make ellipse at beginning with properties {bounds:ellipseBounds, fill color:{class:RGB color info, blue:0.0, green:0.0, red:255.0}}

On Oct 6, 2007, at 7:22 PM, Ken Tozier wrote:

Hi

I'm trying to create an oval on an Illustrator 10 document and am getting a "data is the wrong type" error

Here's the script

set dotRadius to 3

tell application "Adobe Illustrator 10"
	tell document 1
		set ellipseBounds to my EllipseBoundsForPoint(0, 0, dotRadius)
		set e to make ellipse ellipseBounds
	end tell
end tell

on EllipseBoundsForPoint(inX, inY, inRadius)
return {inY + inRadius, inX - inRadius, inY - inRadius, inX + inRadius}
end EllipseBoundsForPoint


I tried every coersion I could throw at it "as fixed rectangle" (which is what the dictionary claims Illustrator is looking for), individually coercing each item to a fixed, surrounding the fields with both "{ }" and "[ ]," appending "mm" to each field. nothing works.

Does anyone know how to create shapes in Illustrator?

Thanks for any help



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40comcast.net
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
References: 
 >Creating shapes in Illustrator (From: Ken Tozier <email@hidden>)

  • Prev by Date: Creating shapes in Illustrator
  • Next by Date: osascript and *.command files
  • Previous by thread: Creating shapes in Illustrator
  • Next by thread: osascript and *.command files
  • Index(es):
    • Date
    • Thread