Page 1 of 1

How to create new file using a template

Posted: 2019-02-02 04:14:16
by vwnisus
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).

Re: How to create new file using a template

Posted: 2019-02-02 05:44:49
by phspaelti
I'm not sure what your question is. Using "New $templatePath" is the way to do this. What else are you looking for?

Re: How to create new file using a template

Posted: 2019-02-02 06:23:15
by vwnisus
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