Use AppleScript to Control player play, pause, next, previou track.
Run in terminal
osascript itunes_play.scpt
# or
./play.sh itunes play
Run with other shortcut tools for extend functions, such as bettertouchtool
applescript with osascript control music player : next previous pause
AppleScriptMIT
Use AppleScript to Control player play, pause, next, previou track.
Run in terminal
osascript itunes_play.scpt
# or
./play.sh itunes play
Run with other shortcut tools for extend functions, such as bettertouchtool