Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tombonez/notunes
A simple macOS application that will prevent iTunes or Apple Music from launching.
https://github.com/tombonez/notunes
itunes macos swift
Last synced: about 11 hours ago
JSON representation
A simple macOS application that will prevent iTunes or Apple Music from launching.
- Host: GitHub
- URL: https://github.com/tombonez/notunes
- Owner: tombonez
- License: mit
- Created: 2017-01-04T21:50:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-08T21:26:42.000Z (6 months ago)
- Last Synced: 2024-12-02T07:56:00.156Z (about 2 months ago)
- Topics: itunes, macos, swift
- Language: Swift
- Homepage:
- Size: 594 KB
- Stars: 3,903
- Watchers: 21
- Forks: 63
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![noTunes Logo](/screenshots/app-icon.png)](https://github.com/tombonez/noTunes)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/tombonez/notunes)](https://github.com/tombonez/noTunes/releases/latest)
[![GitHub all releases](https://img.shields.io/github/downloads/tombonez/notunes/total)](https://github.com/tombonez/noTunes/releases)
[![GitHub](https://img.shields.io/github/license/tombonez/notunes)](https://github.com/tombonez/noTunes/blob/master/LICENSE)
[![GitHub Sponsors](https://img.shields.io/badge/sponsor-tombonez-ec5cc7.svg)](https://github.com/sponsors/tombonez)# noTunes
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.
## Installation
### Direct Download
[noTunes-3.5.zip](https://github.com/tombonez/noTunes/releases/download/v3.5/noTunes-3.5.zip)
### Homebrew
```bash
brew install --cask notunes
```## Usage
### Set noTunes to launch at startup
#### Ventura and later:
1. Navigate to System Settings
2. Select General
3. Select Login Items
4. Click the + under Open at Login and select noTunes#### Before Ventura:
Navigate to System Preferences -> Users & Groups. Under your user, select "Login Items", click the lock on the bottom left and enter your login password to make changes. Click the plus sign (+) in the main panel and search for noTunes. Select it and click "Add".
### Toggle noTunes Functionality
Left click the menu bar icon to toggle between its active states.
**Enabled (prevents iTunes/Music from opening)**
![noTunes Enabled](/screenshots/menubar-enabled.png)
**Disabled (allows iTunes/Music to open)**
![noTunes Disabled](/screenshots/menubar-disabled.png)
### Hide Menu Bar Icon
Right click or control-click the menu bar icon and click `Hide Icon`.
### Restore Menu Bar Icon
[Quit noTunes](#quit-notunes), run the following command in Terminal and re-open the app:
```bash
defaults delete digital.twisted.noTunes
```### Quit noTunes
To quit the app either:
**With menu bar icon visible**
Right click or control-click the menu bar icon and click quit.
**With menu bar icon hidden**
Quit the app via Activity Monitor or run the following command in Terminal:
```bash
osascript -e 'quit app "noTunes"'
```### Set replacement for iTunes / Apple Music
Replace `YOUR_MUSIC_APP` with the name of your music app in the following command.
```bash
defaults write digital.twisted.noTunes replacement /Applications/YOUR_MUSIC_APP.app
```Then `/Applications/YOUR_MUSIC_APP.app` will launch when iTunes/Music attempts to launch.
This can be used to open a website too, for example, YouTube Music.
```bash
defaults write digital.twisted.noTunes replacement https://music.youtube.com/
```The following command will disable the replacement.
```bash
defaults delete digital.twisted.noTunes replacement
```## Support
If you like my work, consider supporting me through [GitHub Sponsors](https://github.com/sponsors/tombonez) 🩷
## License
The code is available under the [MIT License](https://github.com/tombonez/notunes/blob/master/LICENSE).