martax

Function openUrls()

function martax.openUrls(

urls: [String | Array],

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")