Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

How to detect change of document ?

$
0
0

Dear friends and experts,

It seems obvious that with my new project I have opened the box of Pandora...

Palettes stay open even when setting a new cursor location, hence I use this for my dialogue.

But the user can also switch to another document while the palette is open.

Currently I have a button Refresh and the user is urged to use it after switching to another document. The function behind is to analyse the newly entered document and define global variables, update the dialogue.

How could I detect the switch of the document ? I have not found something like onDocumentChange.

(In the current script a check for changed document name is in the btnRefresh.onClick function to avoid irrelevant work).

 

Thank You for any ideas.

Klaus


Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>