How to create new file using a template

Get help using and writing Nisus Writer Pro macros.
Post Reply
vwnisus
Posts: 32
Joined: 2016-04-24 00:13:31

How to create new file using a template

Post by vwnisus » 2019-02-02 04:14:16

I would like to know how to create a new file using a stored template as part of a macro.

Templates are stored in /Users/victor/Dropbox/Nisus/Nisus Writer Settings/Templates.

I know it is possible to create a new file with a macro command (eg File:New).

User avatar
phspaelti
Posts: 1022
Joined: 2007-02-07 00:58:12
Location: Japan

Re: How to create new file using a template

Post by phspaelti » 2019-02-02 05:44:49

I'm not sure what your question is. Using "New $templatePath" is the way to do this. What else are you looking for?
philip

vwnisus
Posts: 32
Joined: 2016-04-24 00:13:31

Re: How to create new file using a template

Post by vwnisus » 2019-02-02 06:23:15

Philip,

Thank you for the reply.

After some more testing I think I got it:

Path: /Users/victor/Dropbox/Nisus/Nisus Writer Settings/Templates/
Template: notary - basic template.dot

means:

Code: Select all

$template = ‘/Users/victor/Dropbox/Nisus/Nisus Writer Settings/Templates/notary - basic template.dot’

new $template

Post Reply