cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Start files

Highlighted

Start files

Hi,

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.

Any idea?

Thanks,
Benoit
Tags (2)
3 REPLIES 3
Highlighted

Re: Start files

Please forget this email. I found my mistake... It works fine now when I
launch the file from instance.acl
Highlighted

Re: Start files



Benoit,

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.

Lynn
Highlighted

Re: Start files

Thanks Lynn. The problem was coming from a glitch in my script and not from
the way I was calling it. Thanks anyway for your help.
Announcements