Skip to content

Instantly share code, notes, and snippets.

@cristoslc
Forked from timvisher/hide others.applescript
Created March 10, 2021 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cristoslc/64da2a0c76e1a7c24c5991ddea416de6 to your computer and use it in GitHub Desktop.
Save cristoslc/64da2a0c76e1a7c24c5991ddea416de6 to your computer and use it in GitHub Desktop.
tell application "System Events"
--set visible of every process whose visible is true and name is not in {"Finder", name of current application} to false
set visible of every process whose visible is true and name is not "Finder" and frontmost is false to false
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment