KM Macro for opening an empty document in Pages?

I find this one a bit tricky. How would I write a macro to open an empty new document in Pages?

tell application "Pages"
  activate
  make new document
end tell

You can paste that into an “Execute AppleScript” action.

Unfortunately that only brings up this screen.

_Tmp.kmmacros (1.7 KB)

This works with the current version of Pages on macOS Sierra.

To make a new document with a specified template, use this in line 3:

make new document with properties {document template:template "Essay"}
1 Like

Works now. I had to restart Pages. Thanks a lot Tom!