About AppleScript Support

James edited this page Jun 20, 2015 · 2 revisions

Starting in 1.1.6, Hachidori now have AppleScript scripting support. In short, it's possible to use currently playing information with other applications like IRC clients, twitter clients, and other third party applications.

Hachidori has three Applescript commands you can use. Here is all of these commands from the AppleScript scripting dictionary for Hachidori.

Hachidori Suite

getstatusv : Returns the currently playing status information.

getstatus

→ text : Currently playing information in JSON. If there is nothing playing, it will return a blank array.

Example:

{"id":"dungeon-ni-deai-wo-motomeru-no-wa-machigatteiru-no-darou-ka","scrobbledactualtitle":"Dungeon ni Deai wo Motomeru no wa Machigatteiru no Darou ka","source":"mplayer","scrobbledtitle":"Dungeon ni Deai wo Motomeru no wa Machigatteiru no Darou ka","scrobbledEpisode":"11"}

scrobblenowv : Tells Hachidori to perform an on demand scrobble.

toggleautoscrobblev : Tells Hachidori to toggle the auto scrobble state.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.