0

重现步骤

调用:

tell application "Spotify"
if it is running then
    set sound volume to (sound volume * .10)
end if
end tell

然后:

tell application "Spotify"
if it is running then
    set sound volume to (sound volume * 10)
end if
end tell

观察到的行为

反复调用会降低应用程序的音量。

预期行为

应用程序应该回到原始音量(就像 rdio 和 iTunes 一样)

4

1 回答 1

0

只要音量不减到0,

set sound volume to (sound volume * 10)

将再次增加音量。一旦达到 0,0x10 = 0

于 2013-02-20T04:45:59.407 回答