Example: /MacClassic/AppleScript/AppleScript Unicode

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem