Skip to content

Instantly share code, notes, and snippets.

@eduardozulian
eduardozulian / btt-spotify-itunes.json
Last active June 30, 2018 00:41
BetterTouchTool: show Spotify/iTunes tracks currently playing
{
"BTTWidgetName" : "Now Playing",
"BTTTriggerType" : 639,
"BTTTriggerTypeDescription" : "Apple Script Widget",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : 172,
"BTTPredefinedActionName" : "Run Apple Script (blocking)",
"BTTInlineAppleScript" : "if application \"Spotify\" is running then\r\ttell application \"Spotify\"\r\t\tif player state is playing then\r\t\t\tnext track\r\t\tend if\r\tend tell\rend if\r",
"BTTScriptType" : "AppleScript",
"BTTEnabled2" : 1,
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;