7 Replies Latest reply: Jan 7, 2013 2:55 PM by MSQRD
younsuk Level 1 Level 1 (0 points)

When I try to send the picture in iPhoto '11, the e-mailer choices are confined to the iphoto itself, Mail, and Outlook something.

 

I'm using Sparrow as a default Mail client in my Mac.  Can I use it as a defaut e-mailer in iPhoto as well?

 

Thanks.


iPhoto '11, Mac OS X (10.6.7), Setting Sparrow as Default Email
  • 1. Re: Can I use Sparrow as a default emailer in iPhoto '11?
    LarryHN Level 9 Level 9 (56,675 points)

    No - the only choices are the ones listed in the iPhoto preferences - you can request Apple to address - iPhoto menu ==> provide iPhoto feedback

     

    LN

  • 2. Re: Can I use Sparrow as a default emailer in iPhoto '11?
    Terence Devlin Level 10 Level 10 (123,820 points)

    Is Sparrow scriptable? If so, make a feature request

     

    IPhoto menu -> Provide iPhoto Feedback

     

    To have Sparrow added to the list. If it's not scriptable then there's no point.

     

    Regards

     

     

    TD

  • 3. Re: Can I use Sparrow as a default emailer in iPhoto '11?
    younsuk Level 1 Level 1 (0 points)

    Thank you, LarryHN and Terence.

  • 4. Re: Can I use Sparrow as a default emailer in iPhoto '11?
    traviscj Level 1 Level 1 (0 points)

    I coded up a quick solution to this that works well enough, for Aperture. It might need some tweaking, but should work with iPhoto as well.

    http://traviscj.com/blog/integrating_sparrow_and_aperture.html

  • 5. Re: Can I use Sparrow as a default emailer in iPhoto '11?
    Matzky Level 1 Level 1 (0 points)

    Save the following with Applescript Editor, works with iPhoto:

     

     

    on mail_images(email_subject, default_address, image_count, new_files, new_captions, new_comments, cancel_string)

              try

                        tell application "Sparrow"

                                  activate

                                  set theMessage to make new outgoing message with properties {subject:email_subject, content:"Check out my sweet pictures!"}

                                  tell theMessage

                                            repeat with image_idx from 1 to image_count

                                                      set this_imagefile to item image_idx of new_files

                                                      set attachmentfilename to POSIX file this_imagefile

                                                      make new mail attachment with properties {filename:attachmentfilename as alias}

                                            end repeat

                                            compose

                                  end tell

     

                        end tell

              on error error_message number error_number

                        log error_message & " " & error_number

                        if the error_number is not -128 then

                                  tell application "Finder"

                                            beep

                                            display dialog error_message buttons {cancel_string} default button 1

                                  end tell

                        end if

              end try

    end mail_images

     

    Save the file as Sparrow.scpt and place in: applications > iphoto > contents (right click & select show package contents) > resources > scripts

     

     

    Now go to iPhoto preferences and from the dropdown menu select Sparrow (including icon!) and start mailing your pictures with Sparrow!

     

    ps this is not my handywork. Credit goes to the original poster.

  • 6. Re: Can I use Sparrow as a default emailer in iPhoto '11?
    Matzky Level 1 Level 1 (0 points)

    Travis, this no longer seems to be working after updating to 10.7.5. I understood that this has to do with the limitations of sandboxing. I've tried using the default mail.scpt and changing tell application to Sparrow. But then I get a Syntax Error: Expected expression, etc. but found “:” regarding this: file name:POSIX file. Any ideas on how to get this back working again?

  • 7. Re: Can I use Sparrow as a default emailer in iPhoto '11?
    MSQRD Level 1 Level 1 (0 points)

    I also can not get this to work. I have tried a slight change that was recommended on the site below but to no avail.

     

    https://discussions.apple.com/thread/4153836?start=0&tstart=0

     

    -- Mail from Sparrow.app instead of Mail.app

    -- Travis Johnson (Edited)

    on mail_images(email_subject, default_address, image_count, new_files, ¬

              new_captions, new_comments, cancel_string)

              try

                        tell application "Sparrow"

                                  activate

                                  set theMessage to make new outgoing message with properties ¬

                                            {subject:email_subject, content:"Check out my sweet pictures!"} ¬

     

                                  tell theMessage

                                            repeat with image_idx from 1 to image_count

                                                      set this_imagefile to item image_idx of new_files

                                                      set thisimagefilepath to (POSIX file this_imagefile) as string

                                                      make new attachment with properties {file:(thisimagefilepath)}

                                            end repeat

                                            compose

                                  end tell

     

                        end tell

              on error error_message number error_number

                        log error_message & " " & error_number

                        if the error_number is not -128 then

                                  tell application "Finder"

                                            beep

                                            display dialog error_message buttons {cancel_string} ¬

                                                      default button 1

                                  end tell

                        end if

              end try

    end mail_images