|Mar 18, 2013, 08:07 PM||#1|
Issues Lowering Volume of Spotify with AppleScript
Can anyone help explain why this script doesn't yield the expected result of decreasing Spotify's volume by units of 10? When I run it for iTunes, iTunes will decrease from say 100 to 90 to 80. Any ideas why it doesn't work the same with Spotify, and how I could correct it?
While we're at it, is there a better way I could rewrite this subroutine?
Thanks for the help!
tell application "Spotify" set currentVolume to sound volume end tell on fadeOut(currentVolume, desiredVolume, delayTime) tell application "Spotify" set currentVolume to sound volume repeat while currentVolume is greater than desiredVolume set sound volume to currentVolume - 10 set currentVolume to sound volume delay delayTime end repeat end tell end fadeOut fadeOut(currentVolume, 30, 10)
tell application "Spotify" get sound volume --> 100 get sound volume --> 100 set sound volume to 90 get sound volume --> 89 set sound volume to 79 get sound volume --> 78 set sound volume to 68 get sound volume --> 67 set sound volume to 57 get sound volume --> 56 set sound volume to 46 get sound volume --> 45
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Incremental volume adjustments with AppleScript?||wrignj08||Mac Programming||5||Jul 28, 2013 05:41 AM|
|Get current track from Spotify in Messages status(AppleScript)||pinyourwings22||Mac Programming||6||Mar 26, 2013 07:13 AM|
|Mount ssh volume with Applescript||MacPC||Windows, Linux & Others on the Mac||2||Feb 18, 2013 05:36 AM|
|AppleScript to zip sub folders on a volume||kevinless||Mac Basics and Help||2||Nov 11, 2012 05:37 PM|
|Spotify issues since yesterday||bhigh8||iPhone Tips, Help and Troubleshooting||6||Nov 8, 2012 09:47 AM|
All times are GMT -5. The time now is 03:11 AM.