Skip to content

Instantly share code, notes, and snippets.

@kikaigyo
Created October 20, 2012 13:48
Show Gist options
  • Save kikaigyo/3923323 to your computer and use it in GitHub Desktop.
Save kikaigyo/3923323 to your computer and use it in GitHub Desktop.
起動中のアプリ全てを終了するAppleスクリプト
(*起動中のアプリを全て終了するが、メニューバー常駐のは含まれない*)
tell application "System Events" to set quitapps to name of every application process whose visible is true and name is not "Finder"
repeat with closeall in quitapps
quit application closeall
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment