Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Spotify - Volume control - commands

Spotify - Volume control - commands

Hello,

 

I have try everything to create a command to control de volume only of spotify.

 

Yes it is true that i'm not a programer but ... I can manage simple thing.

 

I copy this code that i have found :

 

tell application "System Events"
	set MyList to (name of every process)
end tell
if (MyList contains "Spotify") is true then
	tell application "Spotify"
	    set volcheck to get sound volume
	    set volcheck to volcheck + 10
	    set sound volume to volcheck
		
	end tell
	
end if

 

And i have try many other combination, look the web, command definition, etc ...

 

To debug I found that i can use "SAY" so i add every where "say volcheck" And i discover that volcheck is stuck with the same value. The only way to change it, is to pause and restart spotify. Now he get the new value. Others wise he get stuck with the first he had.

 

I get the same problem when the commande was very simple :

 

set sound volume to sound volume + 10

It move once and stuck there. but if i press pause/play it work a second time and stuck again. Any clue what i'm doing wrong?

 

I started a poste in my App forum and the others suggest that i poste here because they think it is a bug from Spotify.

 

Here the original poste:

 

https://forum.keyboardmaestro.com/t/spotify-volume-control/1970

 

http://stackoverflow.com/questions/32274009/spotify-sound-volume-applescript-api

Reply
0 Replies

Suggested posts