0
運行,爲什麼不從終端我AppleScript的運行,我可以成功地從編輯的AppleScript不從終端
我運行命令來運行它
/usr/bin/osascript -e my_script.scpt
我得到錯誤
0:12 :語法錯誤:未知令牌不能跟隨此標識符。 (-2740)
我的腳本
set volume 2
set x to 0
open location "spotify:user:wunspe:playlist:meininki"
tell application "Spotify"
set the sound volume to 0
play
repeat 10 times
if sound volume is less than 70 then
set sound volume to (sound volume + 10)
set x to (x + 9)
set volume output volume x without output muted --100%
delay 3
end if
end repeat
end tell
謝謝你現在的作品。 – wpj