Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Created August 5, 2012 22:45
Show Gist options
  • Save andrewheiss/3267620 to your computer and use it in GitHub Desktop.
Save andrewheiss/3267620 to your computer and use it in GitHub Desktop.
Open and hide all dock programs
repeat with bundleID in paragraphs of (do shell script "defaults read com.apple.dock persistent-apps | sed -E -n 's/.*\"bundle-identifier\" = \"(.*)\";/\\1/p'")
launch application id bundleID
set programName to name of application id bundleID
tell application "Finder"
set visible of process programName to false
end tell
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment