Fraser Speirs ([info]fraserspeirs) wrote,
@ 2004-11-24 10:18:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Flickr Folder Action
So there are times when I don't want to import something into iPhoto just to use my exporter to send it to Flickr. Screenshots, for example. I wrote an Applescript folder action which, when files are added to a folder, will upload them to Flickr.

on adding folder items to this_folder after receiving these_items
  repeat with x in these_items
    set theCmd to "/usr/bin/curl -F email=me@my.org -F password=foobar -F tags=\"unfiled\" -F is_public=0 -F is_friends=0 -F is_family=0 -F photo=@" & (POSIX path of x) & " http://www.flickr.com/tools/uploader_go.gne"
    do shell script theCmd
  end repeat
	
  display dialog "Uploaded " & (count of these_items) & " images" buttons "OK" default button "OK"
end adding folder items to


It uploads them initially private and tags them with "unfiled" so I can easily find them later. Yeah, it's pretty poor with respect to error handling or feedback, but it does the quick and dirty job I want from it.



(Post a new comment)


[info]spike
2004-11-24 06:46 am UTC (link)
Nice.


I just recently had to throw a bunch of pix up for my Dad and his wife, and wound up choosing Ofoto; Shutterfly had no Mac bulk-uploader and Flickr doesn't let you order prints(?!?) as far as I can tell. It felt weird. Am I missing something about Flickr?

(Reply to this) (Thread)


[info]fraserspeirs
2004-11-25 10:20 am UTC (link)
Yes, Flickr doesn't have a print-ordering component. It's really a blog infrastructure centred around uploading images rather than text. It takes/steals a lot of good ideas from other services (for example tags from del.icio.us) and they've done some really cool flash work.

(Reply to this) (Parent)

yes...
[info]module
2004-11-24 03:44 pm UTC (link)
... it is immodest. but you made something useful so be as immodest as you'd like ; )

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…