You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacClassic/AppleScript/AppleScript Unicode
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
EventHandler Sub Open()
dim lines(-1) as string
lines.Append "on test(filename)"
lines.Append "tell application ""Finder"""
lines.Append "set test to filename"
lines.Append "display dialog test"
lines.Append "end tell"
lines.Append "end run"
dim a as new AppleScriptMBS
a.UnicodeText = true
a.Compile Join(lines,EndOfLine)
dim text as string = "Hello "
text = ConvertEncoding(text, Encodings.UTF16)
dim params(-1) as string = array(text)
a.ExecuteEvent("test", params)
End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar