Get help using and writing Nisus Writer Pro macros.
3 posts • Page 1 of 1
Certain Services can be applied only to a contigous selection. Is it possible for a Nisus macro to run through the items of a non-contiguous selection (just like running through list items f.e.) to apply a service consecutively?
You can use something like this.
Code: Select all
$doc = Document.active $sels = $doc.textSelections foreach $sel in reversed $sels $doc.setSelection $sel Document.setActive $doc Menu ':Nisus Writer Pro:Services:New TextEdit Window Containing Selection' end
Fabulous. Just what I was looking for!