Skip to content

Instantly share code, notes, and snippets.

@Poltergeist
Created August 10, 2011 08:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poltergeist/1136396 to your computer and use it in GitHub Desktop.
Save Poltergeist/1136396 to your computer and use it in GitHub Desktop.
multi dropbox
mkdir -p /Users/$USER/Applications/DropboxAltStarter.app/Contents/MacOS/
cat <<EOF >/Users/$USER/Applications/DropboxAltStarter.app/Contents/Info.plist
<?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">
<plist version="1.0">
<dict>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleExecutable</key>
<string>DropboxAltStarter</string>
<key>LSUIElement</key>
<string>1</string>
</dict>
</plist>
EOF
cat <<EOF >/Users/$USER/Applications/DropboxAltStarter.app/Contents/MacOS/DropboxAltStarter
#!/bin/bash
# Assumes you have Dropbox in /Applications
HOME=/Users/$USER/.dropbox-alt /Applications/Dropbox.app/Contents/MacOS/Dropbox
EOF
chmod 755 /Users/$USER/Applications/DropboxAltStarter.app/Contents/MacOS/DropboxAltStarter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment