Create Circles using AppleScript in Pages document.
I'm trying to create a circle (red line, no fill) in a pages document using AppleScript, but so far I only manage to get a black rectangle. I tried properties like 'shape type:"Oval"' and 'auto shape type:autoshape circle' but none of that would compile/work. Here is my code so far:
tell application "Pages"
activate
set theDoc to front document
tell theDoc
set thePage to page 1
tell thePage
set theCircle to make new shape
end tell
tell theCircle
set position to {100, 200}
end tell
end tell
end tell
I'm using Pages version 14.4 (7043.0.93) and script editor version 2.11 (231) with AppleScript 2.8 on macOS 15.2 (24C101)
MacBook Pro 16″, macOS 15.2