Page 1 of 1

path of the window below the active window

Posted: 2010-10-10 09:33:21
by js
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)

Re: path of the window below the active window

Posted: 2010-10-10 09:45:11
by Kino

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