noTunes is a macOS application that will prevent iTunes or Apple Music from launching.Simply launch the noTunes app and iTunes/Music will no longer be able to launch. For example, when bluetooth headphones reconnect.You can toggle the apps functionality via the menu bar icon with a simple left click.
Nu kwam ik NoTunes tegen, een app waarmee de Muziek App het zwijgen wordt opgelegd. Weet iemand of dat goed werkt? Gaan alle functies op zwart, of blijft er op de achtergrond misschien toch nog stiekem iets actief? En is NoTunes veilig?
let statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
@objc func statusBarButtonClicked(sender: NSStatusBarButton)
func appIsLaunched() { let apps = NSWorkspace.shared.runningApplications for currentApp in apps.enumerated() { let runningApp = apps[currentApp.offset] if(runningApp.activationPolicy == .regular) { if(runningApp.bundleIdentifier == "com.apple.iTunes") { runningApp.forceTerminate() } if(runningApp.bundleIdentifier == "com.apple.Music") { runningApp.forceTerminate() } } }}
func createListener() { let workspaceNotificationCenter = NSWorkspace.shared.notificationCenter workspaceNotificationCenter.addObserver(self, selector: #selector(self.appWillLaunch(note:)), name: NSWorkspace.willLaunchApplicationNotification, object: nil)}
@objc func appWillLaunch(note:Notification) { if statusItem.button?.image == NSImage(named: "StatusBarButtonImageActive") || defaults.bool(forKey: "hideIcon") { if let app = note.userInfo?[NSWorkspace.applicationUserInfoKey] as? NSRunningApplication { if app.bundleIdentifier == "com.apple.Music" { app.forceTerminate() self.launchReplacement() } else if app.bundleIdentifier == "com.apple.iTunes" { app.forceTerminate() self.launchReplacement() } } }}
Maar wel als ik bijvoorbeeld een CD wil rippen. Als ik XLD zou willen gebruiken leidt dat tot allerlei ongemak. Zo is het me niet gelukt te voorkomen dat de CD door Muziek app wordt geopend, als ik alleen XLD wil gebruiken.