Page 1 of 1

Nisus Writer Pro 2.0.5 macro enhancements

Posted: 2013-09-10 15:20:54
by martin
The just released Nisus Writer Pro version 2.0.5 update includes a host of macro language enhancements. New objects like Bookmark, CrossReference, Font, Link, Menu, Selection, Sound, StatusItem, and TableCell let you control additional elements. You can now also create hyperlinks that run macros when clicked, which is useful for some tricks.

Please see the updated Macro Language References, included on the Help menu of version 2.0.5. You can search for "v2.0.5" to find all new and updated features.

Re: Nisus Writer Pro 2.0.5 macro enhancements

Posted: 2013-09-17 03:32:43
by js
Could we just edit an existing link so that it calls a macro in the menu?
What text should be inserted to do that?

Re: Nisus Writer Pro 2.0.5 macro enhancements

Posted: 2013-09-17 07:21:33
by phspaelti
js wrote:Could we just edit an existing link so that it calls a macro in the menu?
What text should be inserted to do that?
The following options will work:

Code: Select all

x-nisus-macro://…
if the path following the // is a macro path.

or:

Code: Select all

x-nisus-macro-file://…
if the (file)path following the // points to a functioning macro file.

Re: Nisus Writer Pro 2.0.5 macro enhancements

Posted: 2013-09-17 07:40:04
by phspaelti
Given this new feature, it would seem a good idea to add a command "Add Link to Macro…" under the "Hyperlink" menu.

Of course now that we know that we can just write x-nisus-macro:// this isn't really needed, but it would be a little more user-friendly, especially if this was implemented with a selection dialog that would allow the user to choose the macro.

Re: Nisus Writer Pro 2.0.5 macro enhancements

Posted: 2013-09-17 08:42:37
by js
Thanks Philip.
This, and the possibility to link to aliases rather than hard links makes Nisus 2.0.5 far more than a minor update!

Re: Nisus Writer Pro 2.0.5 macro enhancements

Posted: 2013-09-20 16:26:39
by martin
phspaelti wrote:Given this new feature, it would seem a good idea to add a command "Add Link to Macro…" under the "Hyperlink" menu.
Agreed! You can also generate these kinds of links using the new macro commands:

Link.newRunMacroWithMenuPath
Link.newRunMacroWithFilePath
Link.newRunThisMacro

Using these commands is much better than specifying the link scheme (eg: "x-nisus-macro") manually.