diff --git a/MTMR/AppDelegate.swift b/MTMR/AppDelegate.swift index d15e6ca..4ebe7c7 100644 --- a/MTMR/AppDelegate.swift +++ b/MTMR/AppDelegate.swift @@ -28,6 +28,12 @@ class AppDelegate: NSObject, NSApplicationDelegate { @objc func testFn(_ sender: Any?) { let quoteText = "You click on menu" + let task = Process() + let appSupportDirectory = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true).first!.appending("/MTMR") + let presetPath = appSupportDirectory.appending("/items.json") + task.launchPath = "/usr/bin/open" + task.arguments = [presetPath] + task.launch() print(quoteText) }