Mac Help Forums


Reply
Thread Tools Display Modes

Automated Flickr Upload - Almost there :)

 
New Member
Join Date: Apr 2007
Posts: 2
 
      20th April 2007
Hi everyone!

I made a script that allows me to send pictures to my flickr account by email, and it doesn't work very well. I"m new to all this, so I think I'll need a little help here The iPhoto import thing doesn't work, and I'm having issues with mail.app...

Thanks in advance!!

Here's the script:

property globTag : "globimg"
property AlbumFolder : "Macintosh HD:Users:steveboisvert:Projets:Albums Photo:"
property ScaleFolder : "Macintosh HD:Users:steveboisvert:Projets:GLöB:Flickr Transferts:GLöB:FlickrScale:"
property ToSend : "Macintosh HD:Users:steveboisvert:Projets:GLöB:Flickr Transferts:GLöB:ToSend:"
property theSender : "(E-Mail Removed)"
property recipCommon : "Photos"
property recipAddress : "(E-Mail Removed)"
property FlickrTags : "Glob Québec"

on adding folder items to this_folder after receiving these_items

tell application "Finder"

-- COPY IMAGES FOR SCALING--
duplicate these_items to ScaleFolder
set FlickrPictures to contents of ScaleFolder
tell application "Macintosh HD:Users:steveboisvert:Library:Workflows:Applicati ons:Folder Actions:FlickScale.app"
open FlickrPictures
end tell

-- NEW ALBUM FOLDER FOR ARCHIVES --
display dialog "Nom de l'album" default answer ""
set albumName to text returned of result
make new folder at AlbumFolder with properties {name:albumName}

-- CREATE TAGS FOR ARCHIVES --
repeat with this_item in these_items
set item_name to (get displayed name of this_item)
display dialog "Nom des gens sur la photo \"" & item_name & "\":" default answer ""
set PictureIDs to text returned of result
if item_name is not ".DS_Store" then
set comment of this_item to (globTag & " " & PictureIDs) as string
end if
end repeat
end tell
-- IMPORT IMAGES TO iPHOTO --

tell the application "iPhoto"
activate
import these_items
end tell

-- move these_items to (AlbumFolder & albumName)

-- SEND IMAGES TO FLICKR --

tell the application "Finder" to move files of folder ScaleFolder to ToSend
set PicturesToSend to contents of ToSend
set theSubject to albumName
repeat with eachitem in PicturesToSend
tell application "Mail"
set newmessage to make new outgoing message with properties {content:"tags: " & albumName & " " & FlickrTags & return}
tell newmessage
set sender to theSender
set subject to theSubject
make new to recipient with properties {name:recipCommon, address:recipAddress}
make new attachment with properties {file name:eachitem} at after the last paragraph
end tell
send newmessage
end tell
end repeat

end adding folder items to
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      20th April 2007
Hi there and welcome,

I'll have a proper look at this tomorrow, sounds interesting !

regards

Ric
 
Reply With Quote
 
New Member
Join Date: Apr 2007
Posts: 2
 
      21st April 2007
Yeah!!

Love the pictures on you flickr page btw...

I want to use that script to create slideshows on my website hosted on the flickr website.

If this works, I'll add commands that will create htmls that will upload themselves to my website with the new slide shows...

Thanks mate

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flickr software Jim UK Macs 5 22nd February 2009 05:32 PM
Flickr offline tricky UK Macs 1 31st October 2008 01:33 PM
Flickr vs. SmugMug Steve Hodgson UK Macs 7 16th June 2008 11:14 PM
iphoto to flickr hurlebaus Apps 2 22nd January 2007 01:14 PM
Flickr uploading? Bonge Boo UK Macs 19 2nd October 2006 08:45 PM


All times are GMT +1. The time now is 10:34 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
New book about Steve Jobs << take part in it!
Arjan (56 Minutes Ago, 09:37 AM)

Help! Stupid computer is automatically logging me out
Elizaboo (11 Hours Ago, 10:41 PM)

URGENT Help. Crazy talk Mac!
Joeker (12 Hours Ago, 09:42 PM)

PDF Document
yura (22 Hours Ago, 12:13 PM)

Difficulties with internet speed (nothing to do with connection)
sammethh (1 Day Ago, 06:36 AM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51