AppleScript

Louis supports AppleScript and has an extensive AppleScript Dictionary. AppleScript support means that you can integrate Louis with other AppleScript enabled editors and applications such as BBEdit or Smultron. To do this you will need to know the AppleScript names and path to certain text fields in Louis.

To set a file to translate from the Smultron text editor you would place the following into a AppleScript file:

tell application "Smultron"
  activate
  set theFile to  the path as Unicode text
end tell

else
  tell application "Louis"
    activate
    set the contents of text field "filein" \\
    of tab view item "Documents" \\
    of tab view "tabview"\\ 
    of window "main" to theFile as string
  end tell
end if

This will place the path of the current Smultron document as the file to be translated into Louis and activate the Louis application so that other setting could be made. This, compined with other named objects given below would permit the development of automated production processes.

Other Louis fields which you may need to address in an AppleScript program are given below each item is enclosed in the tab view tabview and the window main.

Users should consult the AppleScript[1] documentation for more information on programing in AppleScript. As well as the AppleScript web pages.[2]

Greg Kearney 2007-05-30