Created
November 12, 2020 16:16
-
-
Save aimxhaisse/cc84d8f1c267dcfdea5b7522245aaa56 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
echo CLEAR AU CACHE SCRIPT | |
if [ -f "$HOME/Library/Application Support/AU Lab/com.apple.audio.aulab_componentcache.plist" ] | |
then | |
echo deleting "$HOME/Library/Application Support/AU Lab/com.apple.audio.aulab_componentcache.plist" | |
rm "$HOME/Library/Application Support/AU Lab/com.apple.audio.aulab_componentcache.plist" | |
fi | |
if [ -f "$HOME/Library/Caches/AudioUnitCache/com.apple.audiounits.cache" ] | |
then | |
echo deleting "$HOME/Library/Caches/AudioUnitCache/com.apple.audiounits.cache" | |
rm "$HOME/Library/Caches/AudioUnitCache/com.apple.audiounits.cache" | |
fi | |
if [ -f "$HOME/Library/Caches/AudioUnitCache/com.apple.audiounits.sandboxed.cache" ] | |
then | |
echo deleting "$HOME/Library/Caches/AudioUnitCache/com.apple.audiounits.sandboxed.cache" | |
rm "$HOME/Library/Caches/AudioUnitCache/com.apple.audiounits.sandboxed.cache" | |
fi | |
pgrep -x AudioComponentRegistrar >/dev/null && killall -9 AudioComponentRegistrar; echo "killed AudioComponentRegistrar" || echo "AudioComponentRegistrar Process not found" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment