{"action":"created","issue":{"url":"https://api.github.com/repos/will-stone/SpotSpot/issues/13","repository_url":"https://api.github.com/repos/will-stone/SpotSpot","labels_url":"https://api.github.com/repos/will-stone/SpotSpot/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/will-stone/SpotSpot/issues/13/comments","events_url":"https://api.github.com/repos/will-stone/SpotSpot/issues/13/events","html_url":"https://github.com/will-stone/SpotSpot/issues/13","id":335798666,"node_id":"MDU6SXNzdWUzMzU3OTg2NjY=","number":13,"title":"Button/Click-target to Focus Spotify app","user":{"login":"syxanash","id":1325491,"node_id":"MDQ6VXNlcjEzMjU0OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1325491?v=4","gravatar_id":"","url":"https://api.github.com/users/syxanash","html_url":"https://github.com/syxanash","followers_url":"https://api.github.com/users/syxanash/followers","following_url":"https://api.github.com/users/syxanash/following{/other_user}","gists_url":"https://api.github.com/users/syxanash/gists{/gist_id}","starred_url":"https://api.github.com/users/syxanash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syxanash/subscriptions","organizations_url":"https://api.github.com/users/syxanash/orgs","repos_url":"https://api.github.com/users/syxanash/repos","events_url":"https://api.github.com/users/syxanash/events{/privacy}","received_events_url":"https://api.github.com/users/syxanash/received_events","type":"User","site_admin":false},"labels":[{"id":610523545,"node_id":"MDU6TGFiZWw2MTA1MjM1NDU=","url":"https://api.github.com/repos/will-stone/SpotSpot/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"will-stone","id":654103,"node_id":"MDQ6VXNlcjY1NDEwMw==","avatar_url":"https://avatars1.githubusercontent.com/u/654103?v=4","gravatar_id":"","url":"https://api.github.com/users/will-stone","html_url":"https://github.com/will-stone","followers_url":"https://api.github.com/users/will-stone/followers","following_url":"https://api.github.com/users/will-stone/following{/other_user}","gists_url":"https://api.github.com/users/will-stone/gists{/gist_id}","starred_url":"https://api.github.com/users/will-stone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-stone/subscriptions","organizations_url":"https://api.github.com/users/will-stone/orgs","repos_url":"https://api.github.com/users/will-stone/repos","events_url":"https://api.github.com/users/will-stone/events{/privacy}","received_events_url":"https://api.github.com/users/will-stone/received_events","type":"User","site_admin":false},"assignees":[{"login":"will-stone","id":654103,"node_id":"MDQ6VXNlcjY1NDEwMw==","avatar_url":"https://avatars1.githubusercontent.com/u/654103?v=4","gravatar_id":"","url":"https://api.github.com/users/will-stone","html_url":"https://github.com/will-stone","followers_url":"https://api.github.com/users/will-stone/followers","following_url":"https://api.github.com/users/will-stone/following{/other_user}","gists_url":"https://api.github.com/users/will-stone/gists{/gist_id}","starred_url":"https://api.github.com/users/will-stone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-stone/subscriptions","organizations_url":"https://api.github.com/users/will-stone/orgs","repos_url":"https://api.github.com/users/will-stone/repos","events_url":"https://api.github.com/users/will-stone/events{/privacy}","received_events_url":"https://api.github.com/users/will-stone/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-06-26T12:35:17Z","updated_at":"2018-06-29T10:46:05Z","closed_at":null,"author_association":"NONE","body":"One feature that I find quite useful is the possibility to switch to Spotify app when clicking on the green label of the artist in the SS window as shown in the gif here:\r\n\r\n![screen](https://i.imgur.com/CyfLFQE.gif)\r\n\r\nI achieved this by doing something like this on the  `trackArtist` variable:\r\n\r\n```js\r\ntrackArtist.addEventListener('click', () => {\r\n\r\n    function execute(command, callback) {\r\n        exec(command, (error, stdout, stderr) => { \r\n            callback(stdout); \r\n        });\r\n    };\r\n\r\n    const cmd = `osascript -e 'tell application \"Spotify\" to activate'`;\r\n\r\n    // call the function\r\n    execute(cmd, (output) => {\r\n    });\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/will-stone/SpotSpot/issues/comments/401319191","html_url":"https://github.com/will-stone/SpotSpot/issues/13#issuecomment-401319191","issue_url":"https://api.github.com/repos/will-stone/SpotSpot/issues/13","id":401319191,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTMxOTE5MQ==","user":{"login":"syxanash","id":1325491,"node_id":"MDQ6VXNlcjEzMjU0OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1325491?v=4","gravatar_id":"","url":"https://api.github.com/users/syxanash","html_url":"https://github.com/syxanash","followers_url":"https://api.github.com/users/syxanash/followers","following_url":"https://api.github.com/users/syxanash/following{/other_user}","gists_url":"https://api.github.com/users/syxanash/gists{/gist_id}","starred_url":"https://api.github.com/users/syxanash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syxanash/subscriptions","organizations_url":"https://api.github.com/users/syxanash/orgs","repos_url":"https://api.github.com/users/syxanash/repos","events_url":"https://api.github.com/users/syxanash/events{/privacy}","received_events_url":"https://api.github.com/users/syxanash/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T10:46:05Z","updated_at":"2018-06-29T10:46:05Z","author_association":"NONE","body":"do you mean double click anywhere on the window? anyway it sounds like a better approach!\r\nI initially decided to click the artist title because it has the green label hence Spotify main color, but yours sounds better."}}
{"actor":{"display_login":"syxanash"}}