Last active
April 8, 2018 10:13
-
-
Save robertoestivill/0210e03956fd84424d6a4b7024b2444f to your computer and use it in GitHub Desktop.
Hide Apple apps
This file contains 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
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
declare -a arr=( | |
"Calendar.app" | |
"Chess.app" | |
"Contacts.app" | |
"DVD Player.app" | |
"Dashboard.app" | |
"Dictionary.app" | |
"Facetime.app" | |
"Font Book.app" | |
"Launchpad.app" | |
"GarageBand.app" | |
"Keynote.app" | |
"Mail.app" | |
"Maps.app" | |
"Messages.app" | |
"Mission Control.app" | |
"Notes.app" | |
"Numbers.app" | |
"Pages.app" | |
"Photos.app" | |
"Reminders.app" | |
"Siri.app" | |
"Stickies.app" | |
"Time Machine.app" | |
"iMovie.app" | |
"iBooks.app" | |
"iTunes.app" | |
"TextEdit.app" | |
) | |
for APP in "${arr[@]}" | |
do | |
if [ -e "/Applications/$APP" ]; then | |
rm -rf "/Applications/.$APP" | |
mv "/Applications/$APP" "/Applications/.$APP" | |
echo "$APP" hidden | |
else | |
echo "$APP" not found | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Facetime, iTunes and Mail are not useless!!!