Re: applescript-users digest, Vol 3 #1 - 14 msgs
Re: applescript-users digest, Vol 3 #1 - 14 msgs
- Subject: Re: applescript-users digest, Vol 3 #1 - 14 msgs
- From: Dieter May <email@hidden>
- Date: Tue, 31 Oct 2000 18:27:36 +0100
>
12. Illustrator 9- sample code? (Jason Bourque)
>
Message: 12
>
Date: Mon, 30 Oct 2000 20:57:53 -0500
>
Subject: Illustrator 9- sample code?
>
From: Jason Bourque <email@hidden>
>
To: <email@hidden>
>
>
Help,
>
>
I am trying to draw a line in Illustrator 9, does anyone have any sample
>
code I could look at? I seem to be missing something in the properties.
>
>
Thanks,
>
>
Jason Bourque
Hi Jason,
as a beginner I had the same Problem. You have first to make a path item and then to set the points.
Here is part of my script where I can set costum Cropmarks arround an object.
set y to 300
set x to 300
set Abstand to 6
set Laenge to 48
set LinienSt to 0.5
-----
tell application "Adobe Illustrator. 9.0"
if (count of documents) > 0 then
activate
set Register to (get last spot of current document)
set ols to ,
make new path item at beginning of last layer of ,
current document with properties ,
{stroke width:LinienSt ,
, stroke color:{tint:100.0, spot:Register} ,
, filled:false, stroke overprint:false}
set P1 to (y + Abstand)
set P2 to (y + Laenge)
make new path point at ols ,
with properties ,
{index:1 ,
, anchor:{x, P1} ,
, left direction:{x, P1} ,
, right direction:{x, P1} ,
, point type:corner}
make new path point at ols ,
with properties ,
{index:2 ,
, anchor:{x, P2} ,
, left direction:{x, P2} ,
, right direction:{x, P2} ,
, point type:corner}
end if
end tell
-----------
I am better in drawing, then making Scripts for Illustrator. But I have great Fun.
Thanks to, which make this possible.
Dieter May
-------------------------------------------
Layout & Grafik May, Ingelheim