openFile

fun openFile(file: File, externalApplication: String)

Opens the file in an external program.

Parameters

file

The file to be opened in an external application. If this is a folder, then it opens in the operating system's file manager.

externalApplication

The (path) to the application, or blank to use the default application for this file's type. This value is taken from EditorSettings.imageApp, EditorSettings.svgApp etc.