Adobe Illustrator CS Scripting Guide
Table 4.58 path item, path items — Properties (Continued)
Property
stroke miter limit
stroke overprint
stroke width
stroked
Valid Commands
• count
• delete
• duplicate
• exists
• move
Notes
The path item class gives you complete access to paths in Illustrator.
Example 37.1
The stroke width and color of a path can be easily set, as demonstrated in this example.
-- Set the stroke of the first path to a red 4 point line
tell application "Illustrator CS"
if (count path items of document 1) > 0 then
set properties of path item 1 of document 1 to ¬
{stroke width:4.0, stroke color:{red:255.0}}
end if
end tell
R/O
Value type
real
boolean
real
boolean
• translate
• rotate
• scale
• transform
12 Aug 03
What it is
When a default stroke join is set to
mitered, this property specifies when
the join will be converted to beveled
(squared-off ) by default. The default
miter limit of 4 means that when the
length of the point reaches four times the
stroke weight, the join switches from a
miter join to a bevel join. Values: 1–500; a
value of 1 specifies a bevel join.
If true, the art beneath the stroked
object should be overprinted
Width of stroke
If true, the path should be stroked
175