In Tom Gewecke's blog "Multilingual Mac" he mentioned that he has made available a file for this purpose. Go to his Dropbox page and download the Esperanto.keylayout file. Save it into your ~/Library/Keyboard Layouts folder. (To get to ~/Library in Finder, click on Go, then hold down the Alt/Option key and click on Keyboard Layouts.) Log out.
Login again. Go to: System Preferences > Keyboard > Input Sources > + > Others, and select Esperanto. Then click on Add. You can close the system preferences window.
Then click on the keyboard layout symbol, a tiny icon next to the battery icon in the upper toolbar, and choose the Esperanto one. You can then type the accented Esperanto characters using the alt/option key and the appropriate letter (with shift for upper case).
You can see a picture of the actual layout by clicking on the layout icon in the toolbar and selecting Show Keyboard Viewer. Note that it sets up four dead key combinations, which can be used for typing in some
To type the accented letters, hold down the alt/option key and press the accent key (6 or B) and then the key for the letter. For instance, for Ĝ: option 6 then shift G. For ŭ: option B (for breve) then U. You can type macrons for Māori words this way too. For ō: option A then O.
This method is similar to that of the International keyboard. The advantages of the U.S. ExtEsp layout are that the semicolon key is easily accessible (at least on a US keyboard), and this arrangement does not interfere with typing in English or other languages based on the Latin alphabet. Detailed information is available in ReadMe.pdf on our Downloads page.
To set up this arrangement on your Macintosh requires an OS-X virtual keyboard file. It can be downloaded from the web-site of Amerika Asocio de Instruistoj de Esperanto (AAIE) by clicking on this link:
Unzip the downloaded file and follow the instructions in the file ReadMe.pdf.