I really like that iTunes (Yosemite, iTunes 12) shows OS notifications when a new song comes up. But when I am using iTunes in miniplayer mode, I don't need these notifications. Is there a way to get iTunes to only show the OS notifications when it is in the main window mode?
MacOS – iTunes new song notifications: how to turn off when using miniplayer
itunesmacosnotifications
Related Question
- Safari Notifications – How to Turn Off “Try the New Safari” Alert
- Living with notifications in a many-tabbed world
- iTunes Automation – Execute Script When New Song Plays
- How to turn off notifications for a specific event in the calendar
- ITunes (Music.app) not converting song entirely / skip to the next one when playing
- iOS – How to Temporarily Turn Off All Notifications on iPhone
Best Answer
You can manually turn it on and off in the Notifications System preferences.
Update to this Answer:
This works on my Mac quite well. But it is not localised and is really a quick script put together as a proof of concept.. ( thats the disclaimer )
The idea is the place this script in to the Applescript menu and run it when you want to toggle the iTunes player from Main to mini player.
The script wil do the toggle for you, check which window is active and then open the system prefs try and find the iTunes notifications and switch to either "None" or "Banners" depending. I have completely ignored "Alerts" in this because I am sure most people would not have that selected!.
As I said proof of concept. You most likely can put it in an Automator Service and use a hot key with it.
Also note: depending on your system you may need to add more delays to wait for the user interface to catch up
Update 2
It works better actually as a Automator service with a Hotkey.
In Automator use a Run Applescript Action and replace it's template code with the above..
Set the input to non. and Any Application. Save it.
Open up the Shortcut prefs. Find your service under the Services and add a shortcut.
done.