« 再生中の曲をアーティスト名プレイリストに追加する | トップページ | [Terminal]ターミナルを終了させる »

[Terminal]すべてのWindowにエスケープを送る


【スクリプトエディタで開く】|

tell application "Terminal"
  set objWindow to (every window)
end tell

repeat with itemWindow in objWindow
  tell application "Terminal"
    tell itemWindow
      activate
      set frontmost to true
    end tell
  end tell
  delay 1
  tell application "System Events"
    tell process "Terminal"
      keystroke "c" using {control down}
      keystroke "c" using {control down}
    end tell
  end tell
end repeat


|

« 再生中の曲をアーティスト名プレイリストに追加する | トップページ | [Terminal]ターミナルを終了させる »

Terminal」カテゴリの記事