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)
path of the window below the active window
Re: path of the window below the active window
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