次のスクリプトを実行している:アップルスクリプトの構文エラー
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
が強調表示構文エラーです。
私はオートメーターを使用しており、thisの記事に続いてGoogle音楽のホットキーを作成しようとしています。