martax

Function openUrls()

fun martax.openUrls(

urls: [String | Array<String>],

application: String? = nil

)

Open given URLs.

You can pass a single URL string, or several URLs as a string array.

application is an application bundle identifier in which URLs should be opened. If absent, the default application will be used.

Example:

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