You have installed OmegaT in your Mac and now you want to use one of the scripts in Tools > Scripting, but the list is empty. So, you go to File > Set Scripts Folder and try to navigate to OmegaT's installation folder, but you can't find it.
In Mac, OmegaT's installation folder is not accessible through the scripting window's dialog box. However, it is accessible from Finder. The actual location will depend on how you installed OmegaT. If you followed the installation instructions, it will be somewhere within the Applications folder.
IMPORTANT: OmegaT can be run from any folder in your system, so if you unzipped it in the Downloads folder and haven't moved it from there... well, it is there. If you are not careful, you may end up with several copies in different places. In this article, we will make three assumptions:
Before you start, make sure to close any OmegaT session currently open. Then, proceed to any of the two solutions provided below.
Manuel Souto Pico kindly contributed with a customization script that the author of this article modified to help Mac users automatically set the scripts folder. You can download it from here. After downloading, do this:
Note: Instead of typing, you can copy and paste from the steps above.
Now, go to the Confirmation step below.
First, you need to get the pathname of your OmegaT installation. You can start from the Dock or, if you don't see the OmegaT icon there, from Finder.
Step No. | From the Dock: | From Finder: |
---|---|---|
1. | control+click on the OmegaT icon | Put the cursor in the Search field |
2. | Click on Options | Type omegat.app and hit return (enter). |
3. | Click on Show in Finder and proceed to the steps below. | Select "This Mac" in the Search scope bar and proceed to the steps below. |
Now you are able to copy the pathname of your OmegaT installation:
SelectCopy "OmegaT" as Pathname .
Next, you need to access OmegaT's configuration folder.
Press command+space to open Spotlight Search and type OmegaT.
In Finder, look for omegat.prefs in the file list.
Note: Before you proceed, you may want to create a backup of this file. To create a backup of omegat.prefs, control+click on it and select Duplicate in the context menu.
When you are ready, control+click on omegat.prefs and select Open With and then TextEdit.
A TextEdit window will open showing the contents of omegat.prefs. In TextEdit, do the following:
Check that you have successfully set the scripts folder by going to OmegaT > Tools > Scripting. You should be able to see the list of scripts in the right pane.
Screenshot from Terminal.
Last edit: Héctor Cartagena 2020-05-09
Screenshot from Finder showing "Copy "OmegaT" as Pathname".
Screenshot from Finder showing omegat.prefs
Screenshot from TextEdit showing the search results.
Screenshot from TextEdit showing the Scripts folder setting.