SHARE
TWEET

Mute music

thomaskekeisen Sep 17th, 2019 780 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if application "Spotify" is running then
  2.     tell application "Spotify"
  3.        
  4.         set sound volume to 0
  5.     end tell
  6. end if
  7.  
  8. if application "SoundCleod" is running then
  9.     tell application "SoundCleod"
  10.         activate
  11.        
  12.         repeat 10 times
  13.             tell application "System Events" to key code 125 using shift down
  14.         end repeat
  15.        
  16.         activate me
  17.     end tell
  18. end if
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top