3
前面に単一ウィンドウを上げるためのスクリプト
スクリプトで、特定のttyデバイスを含むTerminal.appウィンドウを見つけて、そのウィンドウを一番上に上げようとしています。これが私がこれまでにAppleScriptに持っていたものです: tell application "System Events" set foundWin to false if (name of processes) contains "Terminal" then tell application "Terminal" set theTabs to first tab of every window where tty is "$(tty)" repeat with theTab in theTabs if class of theTab is tab then set theWin to (first window whose tabs …