path of the window below the active window

Get help using and writing Nisus Writer Pro macros.
Post Reply
js
Posts: 229
Joined: 2007-04-12 14:59:36

path of the window below the active window

Post by js » 2010-10-10 09:33:21

Is it possible to get the path of the window below the active window?
(Without exchanging front windows, getting the path and exchanging them again, that is)

Kino
Posts: 400
Joined: 2008-05-17 04:02:32

Re: path of the window below the active window

Post by Kino » 2010-10-10 09:45:11

Code: Select all

$docs = Document.openDocuments
if $docs.count > 1
	exit $docs[1].filePath # you get nothing if the document is a new document not having a path
else
	exit ‘Just a single document is open.’
end

Post Reply