Skip to content

Instantly share code, notes, and snippets.

@EricPKerr
EricPKerr / Watchpics
Created July 8, 2009 08:48 — forked from pc/Watchpics
Auto-upload screenshots to ImageShack.us and paste image URL to clipboard (Mac)
#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">