0
當運行下面的腳本:蘋果腳本語法錯誤
on run
tell application "Safari"
set allWins to every window
set allTabs to {}
repeat with currWin in allWins
set allTabs to allTabs & every tab of currWin
end repeat
repeat with currTab in allTabs
try
if ((characters -10 thru -1 of (title of currTab as string)) as string) = "Google Music" then set musicTab to currTab
end try
end repeat
tell musicTab
execute javascript "SJBpost(\"playPause\");"
end tell
end tell
end run
收到的語法錯誤Expected end of line but found identifier.
和javascript
突出顯示。
我正在使用automator並嘗試爲this文章創建Google音樂的熱鍵。