Added a basic support for AppleScript scripts

With this changes you can control playback using AppleScript scripts. (Made for using dotremote android app)