Platforms to show: All Mac Windows Linux Cross-Platform

/MacClassic/AppleScript/AppleScript Unicode


Required plugins for this example: MBS MacClassic Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacClassic/AppleScript/AppleScript Unicode

This example is the version from Wed, 27th Oct 2020.

Project "AppleScript Unicode.xojo_binary_project"
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
ExternalFile info
End ExternalFile
End Project

See also:

The items on this page are in the following plugins: MBS MacClassic Plugin.


The biggest plugin in space...