These automated programs let you control iTunes and Spotify from the Mac Dock itself without having the need to open the Main Windows. These Apps are available for free. To download these Apps click here :
Once these Apps are intalled yopu will see extra buttons of Play, Next, and Previous on your dock. You can directly click them to control the song play.