RE: Illustrator 9- sample code?
RE: Illustrator 9- sample code?
- Subject: RE: Illustrator 9- sample code?
- From: "Bourque, Jason" <email@hidden>
- Date: Tue, 31 Oct 2000 09:36:35 -0500
Help it did, but success I did not find. On to the AppleScipt Mailing List I
go for additional help I seek? If one wonders what I have so far, below is
my unsuccessful code. Comments are appreciated. : )
tell application "Adobe Illustrator. 9.0"
activate
make new document with properties {color space:CMYK, width:8.5 * 72,
height:11 * 72}
--Add eMarketer red to swatch palette
set swatchColor to {cyan:1.18, magenta:96.08, yellow:91.37, black:0.0}
make new swatch at beginning of current document with properties ,
{name:"eRed", color:swatchColor}
tell document 1
--Clean document of colors
delete (every swatch whose name is not "eRed")
-->>Line Specifics<<
set lineWidth to 325
set strokeWidth to 2.25
set thinStrokeWidth to 0.6
-->>Bar Specifics<<
set barHeight to 15
-->>Type Specifics<<
set headingFont to "VectoraLH-Black"
set headingFontLeading to 12.5
set sourceFont to "VectoraLH-Italic"
set sourceFontLeading to 10
set copyRightFont to "VectoraLH-Roman"
set copyRightFontLeading to 10
set barCopyFont to "VectoraLH-Black"
set barCopyFont to 10.5
set wwwcomFont to "VectoraLH-Roman"
set wwwcomFontLeading to 10
set eMarketerFont to "VectoraLH-Black"
set yCoordinate to 1 * 72
set xCoordinate to ((8.5 * 72) - 2.25) / 2
make new path item at {position:{yCoordinate, xCoordinate}} with
properties {stroke width:strokeWidth, stroke color:{class:gray color info,
gray value:100.0}, width:lineWidth}
end tell --tell document 1
end tell --application "Adobe Illustrator. 9.0"
Thanks from a someone scripting a new beast (Illustrator 9),
Jason Bourque
MFS Investment Management
>
----------
>
From: Leonard Rosenthol
>
Sent: Tuesday, October 31, 2000 8:49 AM
>
To: email@hidden
>
Cc: email@hidden
>
Subject: Re: Illustrator 9- sample code?
>
>
At 7:04 PM -0800 10/30/00, email@hidden
>
wrote:
>
>
>
>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.
>
>
>
There are a HUGE amount of sample scripts that come with
>
Illustrator. Did you look at those? What about the documentation -
>
there is a HUGE PDF document that is JUST about scripting
>
Illustrator. Did that not help?
>
>
>
Leonard