mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 17:38:38 +00:00
open preset for editing then you click by Preferences in menu.
This commit is contained in:
parent
2ad89bd8c8
commit
a6f27a1fef
@ -28,6 +28,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||||||
|
|
||||||
@objc func testFn(_ sender: Any?) {
|
@objc func testFn(_ sender: Any?) {
|
||||||
let quoteText = "You click on menu"
|
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)
|
print(quoteText)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user