Advertisement
Guest User

Untitled

a guest
Nov 20th, 2016
4,512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Play The playlist or track in the below variable, paste URI here with double qoutes
  2. property URI : "spotify:user:meck:playlist:6g6cACKsvXPk7AkdwAH6RF"
  3.  
  4. -- Volume for playing the track/playlist: 0-100
  5. property volume : 100
  6.  
  7. -- Repeat the track/playlist: true/false
  8. property rpt : true
  9.  
  10. -- Shuffle the track/playlist: true/false
  11. property shuffle : false
  12.  
  13. -----------------------------------------------------------------------------------
  14. -- WARNING starting up spotify if its not runing already includes a 3 sec delay
  15. if application "Spotify" is not running then
  16.     tell application "Spotify"
  17.         launch
  18.         delay 3
  19.     end tell
  20. end if
  21.  
  22.  
  23. tell application "Spotify"
  24.    
  25.     pause
  26.     copy rpt to repeating
  27.     copy shuffle to shuffling
  28.     copy volume to sound volume
  29.     play track URI
  30. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement