├── icon.png ├── alfred.png ├── quicksilver.png ├── spotify-playpause.applescript ├── spotifyscripts.alfredworkflow ├── spotify-nexttrack.applescript ├── spotify-prevtrack.applescript ├── spotifyscripts-alfred3.alfredworkflow ├── README.mkdn └── spotify-currenttogrowl.applescript /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christineyen/spotify-applescripts/HEAD/icon.png -------------------------------------------------------------------------------- /alfred.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christineyen/spotify-applescripts/HEAD/alfred.png -------------------------------------------------------------------------------- /quicksilver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christineyen/spotify-applescripts/HEAD/quicksilver.png -------------------------------------------------------------------------------- /spotify-playpause.applescript: -------------------------------------------------------------------------------- 1 | if application "Spotify" is running then 2 | tell application "Spotify" to playpause 3 | end if -------------------------------------------------------------------------------- /spotifyscripts.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christineyen/spotify-applescripts/HEAD/spotifyscripts.alfredworkflow -------------------------------------------------------------------------------- /spotify-nexttrack.applescript: -------------------------------------------------------------------------------- 1 | if application "Spotify" is running then 2 | tell application "Spotify" to next track 3 | end if 4 | -------------------------------------------------------------------------------- /spotify-prevtrack.applescript: -------------------------------------------------------------------------------- 1 | if application "Spotify" is running then 2 | tell application "Spotify" to previous track 3 | end if -------------------------------------------------------------------------------- /spotifyscripts-alfred3.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christineyen/spotify-applescripts/HEAD/spotifyscripts-alfred3.alfredworkflow -------------------------------------------------------------------------------- /README.mkdn: -------------------------------------------------------------------------------- 1 | # Applescripts for Spotify 2 | 3 | If you're using Alfred 3, the easiest way to get started is to just use the `spotifyscripts-alfred3.alfredworkflow` directly, with the Applescripts bundled in directly. 4 | 5 | Otherwise, feel free to set up your own triggers (screenshots below) or use the provided Alfred 2 workflow (`spotifyscripts.alfredworkflow`). 6 | 7 | Alfred: 8 | 9 | ![screenshot!](https://raw.githubusercontent.com/christineyen/spotify-applescripts/master/alfred.png) 10 | 11 | Or Quicksilver: 12 | 13 | ![screenshot!](https://raw.githubusercontent.com/christineyen/spotify-applescripts/master/quicksilver.png) 14 | -------------------------------------------------------------------------------- /spotify-currenttogrowl.applescript: -------------------------------------------------------------------------------- 1 | set newline to " 2 | " 3 | if application "Spotify" is running then 4 | tell application "Spotify" 5 | set track_name to name of current track 6 | set track_artist to artist of current track 7 | set track_album to album of current track 8 | end tell 9 | tell application "Growl" 10 | -- Make a list of the notifications this script will ever send. 11 | set the notificationsList to {"Current Spotify Track"} 12 | 13 | -- Register our script with Growl 14 | -- You can optionally (as here) set a default icon 15 | -- for this script's notifications. 16 | register as application "Spotify Notifier Script" all notifications notificationsList default notifications notificationsList icon of application "Spotify" 17 | set desc to track_artist & newline & track_album 18 | notify with name "Current Spotify Track" title track_name description desc application name "Spotify Notifier Script" 19 | end tell 20 | end if 21 | --------------------------------------------------------------------------------