| EverythingDigital | RSS Feed | Flickr Photos | What Is Podcasting? |


« iChatterBot | Main | Google Maps Satellite View »

April 04, 2005

FlickrIt

Continuing my series of applescript utilities, I am introducing a Flickr uploader app that asks you to choose a picture file, title, and description, before uploading the photo to Flickr via email. Requires the Apple Mail application with a properly configured email account, and Mac OS X, 10.3 or later recommended.

NOTE: There is a small portion of the code that you must modify for your own Flickr account. The script will not work unless you open the script in Script Editor (located in Applications/Applescript) and modify the portion where it defines the email it will send the file to. You can find the correct email for your Flickr account by going here.

DOWNLOAD: FlickrIt | FlickrIt Source


--FlickrIt v.01b

--Created by Alan Joyce on 4/4/05
--Licensed under Creative Commons 2005

--Requires the changing of one variable, mentioned below, to fit your individual Flickr account.


set defaultLocation to path to pictures folder

copy (choose file with prompt "Please select the picture you want to upload to Flickr." default location defaultLocation invisibles "false") to chosenPicture
copy (chosenPicture) to picturepath

copy text returned of (display dialog "Please enter the desired picture title." default answer "My Picture") to desiredTitle

copy text returned of (display dialog "Please enter the desired picture description." default answer "A great photo.") to desiredDescription

tell application "Mail"
activate
end tell

tell application "Finder"
set visible of application process "Mail" to false
end tell

tell application "Mail"
set picture_message to (make new outgoing message at end of outgoing messages)
tell picture_message
make new to recipient at beginning of to recipients with properties {name:"Flickr Upload Service", address:"flickruploadaddress@flickr.com"} --Change this address to your Flickr upload address, which can be found here: http://www.flickr.com/profile_mailconf.gne

set the subject to desiredTitle
set the content to desiredDescription
tell content
make new attachment with properties {file name:picturepath} at before the first word of the first paragraph
end tell
end tell
send picture_message
end tell

Posted by Alan Joyce at April 4, 2005 02:00 PM

Trackback Pings

TrackBack URL for this entry:
http://www.everythingdigital.org/cgi-bin/mt-tb.cgi/430

Comments

Post a comment




Remember Me?



(You must preview before you post. This is to prevent spam.)