I have a little ACL script which performs default collapse/expand operations on a document map.
If I open my document and then launch the script in the command line it works fine. But I would like to have this script launched automatically each time the document is opened.
Where do I have to call the script?
I tried to put it in the instance.acl and docname.acl but it does not work: the script seems to be called 'too early'. I also tried to launch it when the DocumentLoad event is triggered but it seems to be too early too.
Put the source for your script in an 'instance.acl' file (see help 1330). This will run each time a file of that DOCTYPE is run. If you want to run this script on all DOCTYPES you may open, put the source in a file in the custom\editinit folder in the Epic folder (see help 5716 and 5046 [near the end of the topic]).
The instance.acl file is read each time a document of the associated DOCTYPE is opened. The doctype.acl file (see help 1329) is read once, the first time that a file of the associated DOCTYPE is opened.
In the custom directory of Epic, there are two folders, \init and \editinit files in the \init folder are run once on startup and files in the \editinit are run when ANY file is opened.