Thursday, 31 May 2007

Flickr

I have been frustrated with the flickr uploadr tool lately. It kept on saying that it was done, even if the upload failed. I ended up looking into other possible ways to upload pictures, and I created a script that I could use to do this.

#!/bin/sh

tags=$1
description=$2
emailAddress="myFlickrUploadAccount@flickr.com"

# For emailing all jpg's from current directory, using a case insensitive pattern match

for i in `find . -iname "*.jpg"`
do
echo "$description" | mail -s "tag:$tags" -a $i $emailAddress
echo "Emailing file: $i"
done

echo "Done all files."


The only problem with that: it worked where I developed the script, but where I wanted to run it from, it didn't. Mail on bluehost didn't have the attachment option. :-( Not only that, but apparently bluehost limits the number of emails per hour to prevent spammers, so using email to bulk upload files wasn't the best idea.

So I looked into ruby and python scripts. Not a lot of luck with either. I was starting to get really frustrated. The solution that seems to have be working (so far) is that I just installed the latest version of the uploadr.

I'm happy that it's working now, but it's frustrating that it could have been working a lot sooner. I guess it just comes back to me being pissed off when an app doesn't self-update.

2 comments:

  1. There is a Flickr API that can be used for this - http://blogs.msdn.com/coding4fun/archive/2006/11/22/1126978.aspx

    ReplyDelete