Spotify Scripts for QLab

Hi guys,

Great to see you here. As you’ve seen in the video, I use some Apple Scripts for controlling Spotify inside of QLab (being controlled through Companion).

If you haven’t seen to video check it here..

To use these scripts you are going to need;

  1. QLab – ideally with a Pro License (Daily Rental is usually ~$5). It is possible to use Scripts without a License, but they will need remaking each time you close QLAB – which is a pain.
  2. Spotify downloaded onto your Mac, I haven’t had any success using these with the browser version of Spotify in Chrome, Safari or FireFox. Its a Free App, just click HERE.
  3. A Spotify Premium Account – cause no-one wants those pesky adverts mid Fundraising Dinner.

Here’s the list of Scripts that I use. Let me know of any others that are good..

 

 

Open Spotify

This opens Spotify, while keeping QLab on top…

tell application “Spotify”
    activate
end tell
–restore focus to Qlab
tell application “QLab”
    activate
end tell
THEN Click “Compile Script” at the bottom of the screen.

 

 

Play Spotify

Resumes Playing the Paused track, could be dangerous if you were listening to Barbie girl in the car on the way to the venue!

tell application “Spotify”

set sound volume to 100

play

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Play Selected Playlist

Plays a selected playlist. I’ve left you my Ultimate Party Classics Playlist in there as a ‘safe’ choice – just change the “spotify:playlist:37i9dQZF1DX0IlCGIUGBsA” to your desired playlist. To add your own playlist in, click on the “…” and go to “share”, and “Copy Spotify URI”. Paste this into the quoted part of the script below.

tell application “Spotify”

set sound volume to 100

set houseTrack to “spotify:playlist:37i9dQZF1DX0IlCGIUGBsA”

play track houseTrack

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Fade + Pause Music

This will Fade the Volume of Spotify’s internal Volume, and then Pause the Song that’s playing. When the song is Paused the Internal Volume will reset to 100%.

property tick : 5 — change volume level by this many each loop

property thismany : 0.25 — seconds to wait before making next change to volume

tell application “Spotify”

repeat

set snd to sound volume

if snd is less than or equal to tick then

set sound volume to 0

exit repeat

end if

set sound volume to (snd – tick)

delay thismany

end repeat

pause

set sound volume to 100

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Resume on the Next Track / Next Song

Also resets the volume to 100%.

tell application “Spotify”

set sound volume to 100

play (next track)

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Quit Spotify

Quits Spotify, and kills any audio playing from it instantly.

tell application “Spotify”

quit

end tell

THEN Click “Compile Script” at the bottom of the screen.

 

 

Note that this does not cover licensing of music used in public performance. Though for 98% of my gigs, its sorted out by the client / production house I work for.

Published by danbamberaudio

Freelance MultiSkilled - Project Manager / Sound Engineer / AV Tech based in Manchester UK.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: