Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@robertoestivill
Last active April 8, 2018 10:13
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 robertoestivill/0210e03956fd84424d6a4b7024b2444f to your computer and use it in GitHub Desktop.
Save robertoestivill/0210e03956fd84424d6a4b7024b2444f to your computer and use it in GitHub Desktop.
Hide Apple apps
#!/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
@DiegoMax
Copy link

Facetime, iTunes and Mail are not useless!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment