Administration > Customizing Startup > Startup Command Files
Startup Command Files
When you start Arbortext Editor, it looks in several locations for specific command files. Arbortext Editor command files are plain text files that contain ACL or JavaScript commands or function calls.
You can customize these files and use them to store key mapping commands, set commands for non-default options and other commands. Commands you enter at the Arbortext Editor command line in an Arbortext Editor session override the command files listed below until the session is closed. Arbortext Editor searches for these command files in the following order.
1. _main.acl
2. Custom applications located in the Arbortext-path\custom\init subdirectory.
3. Preferences file (arbortext.wcf)
4. User startup file (The file specified by the environment variable APTRC.)
The remaining startup files are not loaded unless you specify a document name on the command line or open a document.
5. Custom applications located in the Arbortext-path\custom\editinit subdirectory
6. Document type command files (doctype.acl and doctype.js)
7. Document type instance command files (instance.acl and instance.js)
8. Document command files (docname.acl and docname.js)
The _main.acl file ships with Arbortext Editor, and the preferences file is automatically created. Users must create the other files.
When you start Arbortext Editor, it searches for a preferences file in the following locations:
1. A valid path name specified by the Arbortext EditorAPTWCF environment variable, if it's set.
Arbortext recommends setting the APTWCF environment variable if you need to maintain a preferences file in a specific location.
2. A valid path name specified by the operating system HOME environment variable if it's set.
3. If the previous environment variables are not set or are not valid, then the preferences file is saved in the working directory specified during the Arbortext Editor installation.
4. If the previous conditions aren't met, then the preferences file is saved to the startup directory for the current session.
You can create and read in these files anytime after startup by using the source command.