Skip to main content
14-Alexandrite
February 13, 2024
Solved

Need to use File Opened event.

  • February 13, 2024
  • 1 reply
  • 1579 views

I need to call a method right after a file is opened in the editor.

Is there such an event somewhere ?  I can't find it.

 

Thanks.

Best answer by Partner

Thanks for your answer, I ended up using doc_add_callback(current_doc(), 'context_changed', 'triggerContextChanged');  so that as soon as a click happened within the document, I was handling the logic from there.  Which was sufficient enough for me.  

1 reply

15-Moonstone
February 13, 2024

Hi,

Search the Help Center topic for 'editinit' 

• editinit subdirectory
Holds .acl, .js, .class, and .vbs files. Note that when you run Arbortext Editor with the -c option, any applications in this subdirectory are not executed at startup.
All files of the supported application types are executed each time a non-ASCII document is opened for editing. Files in this directory act on a document opened in the Edit window. 
Files in this directory act on a document opened using AOM when the OPEN_EDITINIT flag is used with the Application.openDocument method.
I hope this is of help
Alexia

Partner14-AlexandriteAuthorAnswer
14-Alexandrite
April 11, 2024

Thanks for your answer, I ended up using doc_add_callback(current_doc(), 'context_changed', 'triggerContextChanged');  so that as soon as a click happened within the document, I was handling the logic from there.  Which was sufficient enough for me.