通过AppleScript更改卷API在Spotify中向下舍入
复制步骤 电话:通过AppleScript更改卷API在Spotify中向下舍入,applescript,spotify,Applescript,Spotify,复制步骤 电话: tell application "Spotify" if it is running then set sound volume to (sound volume * .10) end if end tell 然后: 观察到的行为 反复呼叫会降低应用程序的音量 预期行为 应用程序应该返回到原来的音量(就像rdio和iTunes一样)只要音量没有减少到0 set sound volume to (sound volume * 10) 将再次增加音量。一旦达到0,0x
tell application "Spotify"
if it is running then
set sound volume to (sound volume * .10)
end if
end tell
然后:
观察到的行为
反复呼叫会降低应用程序的音量
预期行为
应用程序应该返回到原来的音量(就像rdio和iTunes一样)只要音量没有减少到0
set sound volume to (sound volume * 10)
将再次增加音量。一旦达到0,0x10=0
set sound volume to (sound volume * 10)