Reply to topic  [ 3 posts ] 
running through the items of a non-contiguous selection 
Author Message

Joined: 2007-04-12 14:59:36
Posts: 229
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?


2010-10-06 22:33:39
Profile

Joined: 2008-05-17 04:02:32
Posts: 400
You can use something like this.
Code:
$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


2010-10-07 02:01:32
Profile

Joined: 2007-04-12 14:59:36
Posts: 229
Fabulous. Just what I was looking for!


2010-10-07 05:48:01
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software