martax

Function openFiles()

function martax.openFiles(

path: String,

application: String? = nil

)

Open given files.

You can pass a single path, or several paths as a string array. Paths should be obsolete.

application is a bundle identifier of the application in which files should be opened. If absent, the default application will be used.

Example:

local homeDir = martax.getHomeDirectory()
martax.openFiles(homeDir .. "/foo.txt", "com.apple.TextEdit")