May 31, 2007

Blog has been moved

This post has been moved to blogspot. No further posts will be made to this location.

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.

Posted by jim at May 31, 2007 10:08 PM
Comments

One Word:

DropShots

Posted by: Kibbee at June 2, 2007 09:15 PM

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

Posted by: S Kibbee at June 6, 2007 02:40 PM
Due to the proliferation of comment spam, I’ve had to close comments on this entry. If you would like to leave comment, please use one of my recent entries. Thank you and sorry for any inconvience caused.