我嘗試了很多很多的場景來製作一個腳本,它會提高音量而沒有成功。這裏例如:Spotify - 音量 - AppleScript API
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
或:
tell application "System Events"
set MyList to (name of every process)
end tell
if (MyList contains "Spotify") is true then
tell application "Spotify"
set sound volume to (sound volume + 10)
end tell
end if
要調試我使用COMMANDE「SAY音量」不同的步驟之後,我發現,值停留在相同的值,他得到的第一個時間。它將「重置」它的唯一方法是按暫停/播放。每當我暫停/播放「音量」時,都會獲得新的值並且修改一次,直到我暫停/再次播放。
在這裏,我尋求幫助:https://forum.keyboardmaestro.com/
,他們說我應該將此情況報告給Spotify的。在spotify上,我正在尋找我應該報告的內容,並且表示沒有任何開發者要在這裏發佈信息。所以我在這裏。
所以我的問題是:
我是談論這個bug正確的地方?
and
有沒有人有解決方案?
謝謝你這麼多 –
@JonathanM。你非常歡迎! – sanmiguel