Re: Creating shapes in Illustrator [solved]
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