Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (17 sloc) 0.485 kb
0fe5ac9 @davidvanleeuwen hubot-spotify says hello
authored
1 on run
2 set info to ""
3 tell application "System Events"
4 set num to count (every process whose name is "Spotify")
5 end tell
6 if num > 0 then
7 tell application "Spotify"
8 if player state is playing then
9 set who to artist of current track
10 set what to name of current track
11 set onwhat to album of current track
12 set info to "" & what & "" & " by " & who & " " & "from " & onwhat
13 end if
14 end tell
15 end if
16 return info
17 end run
Something went wrong with that request. Please try again.