Skip to content

Instantly share code, notes, and snippets.

View jdmonaco's full-sized avatar
🤖

Joseph Monaco jdmonaco

🤖
View GitHub Profile
@jdmonaco
jdmonaco / iTunes.sh
Last active December 19, 2015 07:59
Want to use VLC or other superior media apps that respond to keyboard media keys (play/pause, etc) and iTunes keeps getting in the way? Run iTunes.sh to disable normal launching of iTunes. Then this script becomes how you launch iTunes if you need to for some god-forsaken reason. (The sleep helps prevent the rename from occurring before the open…
#!/bin/sh
ITUNES=/Applications/iTunes.app/Contents/MacOS/iTunes
if [ -f $ITUNES ]; then
sudo mv $ITUNES ${ITUNES}X
echo iTunes disabled.
fi
sudo mv ${ITUNES}X $ITUNES &&