SwiftScripting icon indicating copy to clipboard operation
SwiftScripting copied to clipboard

Troubles with Pages

Open cianiandreadev opened this issue 4 years ago • 1 comments

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

cianiandreadev avatar Jun 11 '21 15:06 cianiandreadev

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.

tingraldi avatar Jun 16 '21 11:06 tingraldi