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
#Auto-upload screenshots to ImageShack.us and paste image URL to clipboard (Mac) | |
#!/bin/zsh | |
mkdir -p $HOME/Library/LaunchAgents | |
dir="$HOME/Library/Watchpics" | |
soundbegin="/System/Library/PrivateFrameworks/ScreenReader.framework/Versions/A/Resources/Sounds/DrawerOpening.aiff" | |
soundend="/System/Library/PrivateFrameworks/ScreenReader.framework/Versions/A/Resources/Sounds/DrawerClosing.aiff" | |
cat > $HOME/Library/LaunchAgents/watchpics.plist <<EOF | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |