How to create new file using a template

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

How to create new file using a template

Post 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).
User avatar
phspaelti
Posts: 1313
Joined: 2007-02-07 00:58:12
Location: Japan

Re: How to create new file using a template

Post 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?
philip
vwnisus
Posts: 58
Joined: 2016-04-24 00:13:31

Re: How to create new file using a template

Post 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
Post Reply