Created
August 27, 2024 22:26
-
-
Save wlinds/da220139e4c367b7fb04057301af7712 to your computer and use it in GitHub Desktop.
fswatch: Change default Vital user preset folder (macOS)
This file contains hidden or 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 | |
# Silly workaround for keeping user preset folder on top in Vital library. | |
DEST_DIR="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Audio/Vital/_User/Presets" | |
SOURCE_DIR="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Audio/Vital/User/Presets" | |
fswatch -0 "$SOURCE_DIR" | while read -d "" event; do | |
if [[ "$event" == *.vital ]]; then | |
mv "$event" "$DEST_DIR/" | |
echo "Moved $event to $DEST_DIR" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment