SwiftScripting
SwiftScripting copied to clipboard
Troubles with Pages
Hi all,
Thanks for this project! It's really useful.
I have some questions regarding Pages.
I made a new PagesApplication as follow:
let application = SBApplication(bundleIdentifier: "com.apple.iWork.Pages")
but I don't get how is possible to create a new document from a template name. With AppleScript was something like this:
tell application "Pages"
activate
set thisDocument to ¬
make new document with properties {document template:template "My Template"}
With Swift, I don't get how to do it.
Can you please help me?
Thanks
I've been away from Swift and this project for a number of years with rare exceptions. I'll take a look and see if I can offer you any help.
Thank you.