Skip to content

Instantly share code, notes, and snippets.

@aimxhaisse
Created November 12, 2020 16:16
Show Gist options
  • Save aimxhaisse/cc84d8f1c267dcfdea5b7522245aaa56 to your computer and use it in GitHub Desktop.
Save aimxhaisse/cc84d8f1c267dcfdea5b7522245aaa56 to your computer and use it in GitHub Desktop.
#!/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