Skip to content

Troubles with Pages #23

@cianiandreadev

Description

@cianiandreadev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions