Pages: 1
Print
Author Topic: On_Application_Before_Document_Open  (Read 2077 times)
gcrews
Member

Posts: 265


« on: January 21, 2013, 01:40:59 AM »

I would like to have some code that runs any time before a document is opened. On_Application_Before_Document_Open works if you manually open a file, but it does not appear to be run if you open a file via “Open referenced files” or with the map editor. How can I trigger some code before any document is opened?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: January 21, 2013, 12:11:42 PM »

The application level macros that make up the portion of XMetaL Author Enterprise's DITA customization are already using this event. It is used to figure out whether a document is a map or a topic. You would need to somehow merge your code with that code. However, as the DITA customization is considered a closed system that is not something I would recommend trying. If you are not working with DITA documents then XMetaL Author Essential does not include the DITA customization (and this event does not conflict with anything else).

Is this for DITA or non-DITA?
What do you need to do to the document before it is open?
Logged
gcrews
Member

Posts: 265


« Reply #2 on: January 21, 2013, 02:11:11 PM »

It's the DITA specific operations that perform the open events. I think i found a better way to accomplish what i was trying to do.
Logged
Pages: 1
Print
Jump to:  

email us