OmegaT windows automatically open on startup

When OmegaT loads a project, it also pops up a window called “Project Files” that lists the supported source files in the project. It’s handy if you have multiple files, but I often find myself hitting Esc as soon as it pops up to get it out of the way. This window can be called up at any time by selecting Project > Project Files or pressing Ctrl+L/⌘+L, so it would be great if this automatic display of the window was disabled. There is no GUI option to do this in the preferences, but there is a “hidden” preference for that (meaning that it can’t be changed using GUI, but can be set directly in the OmegaT configuration file). The name of the preference is project_files_show_on_load, and it could be set to false by editing omegat.prefs in the OmegaT configuration folder. But if you don’t feel comfortable editing that file, I’ve put together a script that will toggle this preference between true and false. Just add it to the scripts folder. Each time it is run, the preference is toggled.

Another window I wish would open automatically every time OmegaT starts is the Scripting window. The way the whole scripting shebang is implemented in OmegaT makes it next to impossible to get the window to open with a keyboard shortcut. There is a menu item under Tools to open the Scripting window, but one can’t assign a key combination to run it without going to the menu. So here’s a script that opens the Scripting window whenever it runs. It makes almost no sense to put it directly in the scripts folder because you would have to open the Scripting window first to run the script. But if the script is placed in the application_startup subfolder of the scripts folder, the scripting window will open every time OmegaT is started.