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

Creating shapes in Illustrator


  • Subject: Creating shapes in Illustrator
  • From: Ken Tozier <email@hidden>
  • Date: Sat, 6 Oct 2007 19:22:02 -0400

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Creating shapes in Illustrator [solved]
      • From: Ken Tozier <email@hidden>
  • Prev by Date: How can I use "if keyboard.OptionKey is down then" ?
  • Next by Date: Re: Creating shapes in Illustrator [solved]
  • Previous by thread: Re: How can I use "if keyboard.OptionKey is down then" ?
  • Next by thread: Re: Creating shapes in Illustrator [solved]
  • Index(es):
    • Date
    • Thread