Translation Helper Scripts

Large international corporations often create sales and marketing materials that are replicated by their marketing and communications teams into publications designed for use with various languages.

But for smaller organizations or individuals, translating materials can be a challenging process. This tutorial features two Applescript scripts that will make is easier for you to translate a presentation’s presenter notes using the online Google Translate service.

NOTE: These scripts are compelling examples of how AppleScript can dynamically create and interact with HTML content via the Safari web-browser application.

 DOWNLOAD  an archive containing three scripts and the example presentation file. In the unpacked archive folder, launch the “Automation Tools Installer” applet to install the scripts.

Running the Setup Script

With the installation of the scripts completed, and the presentation opened in Keynote, you are now ready to begin the process of translating the document’s presenter notes.

DO THIS ►Select the installed script “Setup Presenter Notes for Translation” from the system-wide Script Menu. A confirmation dialog will appear:

(⬇ see below ) The opening dialog of the “Setup Presenter Notes for Translation” script. Click the “Set Prefs” button to select the languages to be translated from and to.

translate-dialog-01

When run, the script will open a new window in Safari containing two tabs:

translate-window-01-partial

(⬆ see above ) The new Safari browser window with two tabs: the current tab displaying the presenter notes of the frontmost presentation, and second tab displaying the Google Translate website.

(⬇ see below ) The second browser tab displaying the Google Translate website, with two text fields: the left for entering the text to be translated, and the right containing the translation of the source text.

translate-window-02-partial

Translating the Slide Notes

Translating the slide presenter notes involves following these simple steps for each slide note:

  1. Select & Copy the Slide’s Notes • Select the text of a slide note by clicking in the text area of the note. The text will auto-select. Copy the selected text to the clipboard (⌘C).
  2. Paste & Translate • In the browser window select the Google Translate tab, and paste the copied text into the text input field on the left. Click the Translate button over the right text field to translate the text.
  3. Select, Copy, & Replace • Under the text field containing the translation, click the button for selecting the text. Copy the selected text to the clipboard (⌘C). Click the inactive browser window tab to reveal the slide notes, and replace the selected text of the source slide note with the translation text that’s currently on the clipboard (⌘V).

Repeat these steps for each slide note.

Replacing Existing Presenter Notes

Once the slide notes in the browser window have been replaced with their translations, they can be used to replace the presenter notes in the open Keynote presentation file. This process can be completed quickly using the script provided here.

DO THIS ►Select the installed script “Replace Notes with Localized Notes” from the system-wide Script Menu. A confirmation dialog will appear:

translate-dialog-02

Once the script has finished, the presenter notes in the frontmost Keynote document will be replaced with the translations entered in the Safari browser tab.

TIP: You can use the Simple Play & Say script (included with the installer) to have your slideshow spoken and presented to you using the default system voice. Upgrade your system voices to the free high-quality voices in multiple languages available from the Speech & Dictation system preference pane.

TOP | CONTINUE