function run() {
const aiApp = Application('Adobe Illustrator') ;
const doc = aiApp.documents[0] ;
const newEllipse = aiApp.make({
new: 'ellipse',
at: doc.layers[0],
withProperties: {
bounds: [100, -100, 500, 100], // [left, top, right, bottom]
reversed: false,
inscribed: true
}
}) ;
}
/* in AppleScript...
on run
tell application "Adobe Illustrator"
tell document 1
set newEllipse to make new ellipse at layer 1 with properties {bounds:{100, -100, 500, 200}, reversed:false, inscribed:true}
end tell
end tell
end run
*/
... View more