Code: Select all
$docname = Document.displayName
Code: Select all
$doc = Document.active
$docname = $doc.displayName
I should note also that the manual contains the following:
Code: Select all
Document.selectedFloatingContent
Code: Select all
$docname = Document.displayName
Code: Select all
$doc = Document.active
$docname = $doc.displayName
Code: Select all
Document.selectedFloatingContent
That has never worked.phspaelti wrote:Today I was experimenting with macros in NW 2.0. I thought I remembered that one should be able to write something like this:Code: Select all
$docname = Document.displayName
“Document” stands for Document object as the cross-reference shows (double click on “Document”). Try something like this.I should note also that the manual contains the following:but this also gave me an error when I tried to use it. So is the manual in error?Code: Select all
Document.selectedFloatingContent
Code: Select all
$doc = Document.active
exit $doc.selectedFloatingContent.anchorTextRange
Code: Select all
$doc = Document.active
Code: Select all
$docname = Document.active.displayName
Code: Select all
$doc = Document.active
$ext = $doc.filePath.filePathExtension