MBS LaunchServices Plugin: LaunchServicesOpenMBS

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

LaunchServicesOpenMBS(item as folderitem) as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Launch Services MBS MacOSX Plugin 3.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Open an application, document, or folder.
Example
Dim file As FolderItem = SpecialFolder.Desktop.Child("Test.xojo_binary_project")
Dim a As FolderItem = LaunchServicesOpenMBS(file)

MsgBox a.NativePath

Opens applications, documents, and folders. Applications are opened via an 'oapp' or 'rapp' event. Documents are opened in their user-overridden or default applications as appropriate. Folders are opened in the Finder. Use the more specific LaunchServicesOpenXMBS for more control over launching.

Returns a folderitem to the application which was launched.

Upgraded in version 19.5 to use CFURL instead of FSRef APIs.

Blog Entries

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


💬 Ask a question or report a problem