You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCF/SMJobBless in Xojo/Helper
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
EventHandler Sub Open()
dim u as string = str(getuid)
dim e as string = str(geteuid)
dim p as string = str(getpid)
dim s as string = "Hello world! uid = "+u+", euid = "+e+", pid = "+p
System.log System.LogLevelWarning, s
quit
End EventHandler
ExternalMethod Function geteuid() As integer
ExternalMethod Function getpid() As integer
ExternalMethod Function getuid() As integer
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
ModifyInfoPlistScript
End ModifyInfoPlistScript