Skip to content

Instantly share code, notes, and snippets.

@jcla1
Last active December 23, 2015 00:29
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 jcla1/6554497 to your computer and use it in GitHub Desktop.
Save jcla1/6554497 to your computer and use it in GitHub Desktop.
Print a comma delimited list of user programs running, excluding Finder.
tell application "System Events"
set programs to get name of every process whose background only is false and name is not "Finder"
set AppleScript's text item delimiters to {","}
programs as string
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment