Created
August 5, 2012 22:45
-
-
Save andrewheiss/3267620 to your computer and use it in GitHub Desktop.
Open and hide all dock programs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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