You can use either imagemagick or gscrot to take the screenshot and then it's a lot easier
Here is an example script to take a screenshot and upload it to imgur. You can use it as an example and customize it for dropbox:
Code:
#!/bin/bash
screenshot='screenshot';
nano=`date '+%d-%m-%y-%N'`;
extension='.png';
file="$HOME/Desktop/$screenshot-$nano$extension";
sleep 3; scrot -s -b -q 0 $file;
curl -# -F "image"=@"$file" -F "key"="5d317f0bee23b282473522e1aa68f621" http://imgur.com/api/upload.xml|\
grep -Eo '<[a-z_]+>http[^<]+'|sed 's/^<.\|_./\U&/g;s/_/ /;s/<\(.*\)>/\x1B[0;34m\1:\x1B[0m /'
exit 0
Bookmarks