Custom Commands

On some computers you can use this extension with your own computer scripts. The extension replaces tokens in the extension's main dialog with strings containing a file path, a form of the text to process, or program information. You can preview how the token text is converted by clicking the About... button in the main dialogue. Computer security settings might prevent you from running arbitrary commands.


Command and Script Tokens

When you need these values in a command or a script use the appropriate token. When the add-on is executed, the value in brackets is replaced by the actual string required.

  • Current date as spoken in region (DATE)

  • Current day of week as spoken in region (WEEKDAY)

  • Current time as spoken in region (TIME)

  • Current time reformatted so that you can use it in a filename (NOW)

  • Full name of path and temporary file containing selected text (TMP)

  • Name of the author (AUTHOR)

  • Name of the document (TITLE)

  • Path of OpenOffice.org sound gallery (SOUND_GALLERY)

  • Path to a Windows Script to read using the system's voice (TTS_WSCRIPT_VBS)

  • Path to a Python Script to read aloud or record a sound file using any espeak supported languages. (ESPEAK_READ_TEXT_PY)

  • Path to a Python Script to read aloud or record a sound file using Festival text2wave. (FESTIVAL_READ_TEXT_PY)

  • Path to a Python Script to read aloud or record a sound file using any Linux SVOX Pico supported languages. (PICO_READ_TEXT_PY)

  • Work directory also known as My Documents or home (HOME)

  • Application language code – en for English; fr for French etc. (LANGUAGE_CODE)

  • Application country code - US for United States; FR for France, etc. (COUNTRY_CODE)

  • Application regional code - fr-CA for French in Canada; en-GB for English in the United Kingdom, etc. (LANGUAGE_COUNTRY_CODE)

  • Selection language code – en for English; fr for French etc. (SELECTION_LANGUAGE_CODE)

  • Selection country code - US for United States; FR for France, etc. (SELECTION_COUNTRY_CODE)

  • Selection regional code - fr-CA for French in Canada; en-GB for English in the United Kingdom, etc. (SELECTION_LANGUAGE_COUNTRY_CODE)

  • The first 99 letters of the selected text encoded for URL (OOO_WEBTEXTSMALL)

  • The first 999 letters of the selected text encoded for URL (OOO_WEBTEXT)

  • The first 9999 letters of the selected text encoded for URL (OOO_WEBTEXTBIG)


Dialog - Windows