How to Stop Your Mac from Automatically Starting Apple Music

The Unwanted Soundtrack

Many Mac users experience a highly frustrating phenomenon: the moment they connect a pair of Bluetooth headphones, plug in their iPhone via USB, or even just press the Play/Pause button on their keyboard, the Apple Music app (formerly iTunes) automatically aggressively launches itself and starts blasting music. This happens because macOS hardcodes the Music app as the default media player to respond to hardware media triggers, ignoring the fact that you might be using Spotify, YouTube, or no audio application at all.

How to Disable Auto-Play on Device Connection

If Apple Music launches every time you plug in your iPhone to charge it, the setting is tied to your device synchronization preferences.

1. Connect your iPhone to your Mac using a USB cable.

2. Open a new Finder window.

3. Look in the left-hand sidebar under “Locations” and click on your iPhone.

4. In the main window, make sure you are on the General tab.

5. Scroll down to the “Options” section.

6. Uncheck the box labelled “Automatically sync when this iPhone is connected.”

7. Click the Apply button in the bottom right corner.

How to Stop the Play Button from Launching Music

If Apple Music launches whenever you press the Play/Pause key (F8) on your Mac keyboard, the solution is unfortunately more complex, as Apple does not provide a simple toggle to unbind this key from the Music app. You must use a third-party background utility.

1. Download a free, open-source application called noTunes (available via GitHub).

2. Drag the noTunes.app file into your Applications folder.

3. Launch the application. A small icon showing a musical note with a slash through it will appear in your top menu bar.

4. As long as noTunes is running, it acts as a lightweight shield. When you press the Play key, or when macOS tries to force Apple Music to open for any reason, noTunes intercepts the command and blocks the application from launching.

5. To make this permanent, click the Apple logo () > System Settings > General > Login Items, and add noTunes to the list so it starts automatically every time you boot your Mac.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.