Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jayson A

macrumors 68030
Original poster
Sep 16, 2014
2,671
1,935
Code:
try
    tell application "System Events"
        set listOfProcesses to (name of every process where background only is false)
        set noFinder to listOfProcesses's (items 2 thru -1)
    end tell
    repeat with x in noFinder
        quit application x
    end repeat
end try

Then to set a keyboard shortcut, simply build a service using Automator or use Shortcuts and add it to your menu bar and set a keyboard shortcut.

Mine is CMD-F19
 
i want an applescript that opens all apps at once... 🤔
Code:
tell application "Finder"
    set startDisk to name of startup disk
    set allApps to entire contents of folder {startDisk & ":Applications"}
    repeat with x in allApps
        if name of x contains ".app" then
            open x
        end if
    end repeat
    return allApps
end tell

Enjoy!
 
  • Wow
Reactions: fisherking
Code:
tell application "Finder"
    set startDisk to name of startup disk
    set allApps to entire contents of folder {startDisk & ":Applications"}
    repeat with x in allApps
        if name of x contains ".app" then
            open x
        end if
    end repeat
    return allApps
end tell

Enjoy!
It just goes to show: be careful of what you ask for...

This script seems like it might be useful for testing CPU and memory performance—some kind of benchmark, perhaps.

Why not call it the "Jayson A" benchmark? 😁
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.