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.
text field "filein" of tab view item "Documents"
text field "fileout" of tab view item "Documents"
text field "startpagenumber" of tab view item "cells_lines"
text field "configtest" of tab view item "Processing"
button "run" of tab view item "Processing"
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