diff --git a/applescript/quit-all-apps.applescript b/applescript/quit-all-apps.applescript new file mode 100755 index 0000000..84b1131 --- /dev/null +++ b/applescript/quit-all-apps.applescript @@ -0,0 +1,23 @@ +#!/usr/bin/osascript + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Quit All Apps +# @raycast.mode silent +# @raycast.packageName System + +# Optional parameters: +# @raycast.icon 🛑 + +# Documentation: +# @raycast.description Quits all running applications. + +tell application "System Events" + set allApps to application processes whose background only is false + repeat with appProc in allApps + set appName to name of appProc + try + tell application appName to quit + end try + end repeat +end tell