Controlling an app in OSX from Arduino

I am trying to have the Arduino control an app in OSX. Specifically, I am trying to have the Arduino start and stop playing of a track on iTunes or Spotify on OSX. It is for a "name that tune" game.

Any idea how I can do this? I have tried using the Serial interface, but I am coming up blank. All the searches I have made end up with results to control the Arduino from OSX.

Any help would be greatly appreciated.

I think the easiest way to do this is to look at the bluetooth API for OSX, then use bluetooh commands to control audio playback.

I doubt the serial interface will work because iOS uses a USB connection and probably uses some higher form of data transmission.

I have no experience coding apple products, however.

Thanks for the input. Anyone else have any suggestions?

You need an app on the receiving side in OS X that listens to serial port if this is where you send the info and then uses appelScript to send events to iTunes or other apps.