Keep iPhoto From Launching When You Plug In Your iPhone

Discussion in 'iOS Blog Discussion' started by MacRumors, Feb 26, 2008.

  1. macrumors bot

    MacRumors

    Joined:
    Apr 12, 2001
    #1
    [​IMG]

    If you have an iPhone and plug it in regularly, you will probably agree that the following tip from 37signals.com (via Arstechnica) is extraordinary and possibly groundbreaking for iPhone users.

    That's a little bit* of an exaggeration, but the tip on how to prevent iPhoto from launching every time you plug in your iPhone can prove to be quite useful for those who have grown to loathe the inability to disable the feature without also killing iPhoto's auto-launch abilities for "real" digital cameras (myself included).

    The tip is implemented in 6 well-documented steps. In short, you copy/paste a small AppleScript into Script Editor, change one line to tell the script what your camera is, and then change an Image Capture setting to no longer launch iPhoto whenever a camera is connected but rather launch this script which will then figure out whether to launch iPhoto.


    [​IMG]


    If this sounds like your cup of tea, then by all means check out the details of implementing it.

    *only a little bit, though

    Article Link
     
  2. macrumors newbie

    kissmyaxe

    Joined:
    May 11, 2006
    #2
    Awesome! I've been wanting to disable this for the iPhone since the darn thing came out!
     
  3. macrumors regular

    bennyboi

    Joined:
    Jun 1, 2006
    Location:
    West Coast
    #3
  4. macrumors member

    Joined:
    Sep 14, 2007
    #4
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102 Safari/419.3)

    Just wonderful. It does get pretty annoying after a while.
     
  5. macrumors 6502a

    Joined:
    May 23, 2007
    #5
    Hasn't been an issue for me in months. I'm not sure what I did, but it definitely didn't require any detailed explanation. iPhoto just doesn't start-up when I plug the iPhone in.

    I have to start iPhoto whenever I want to import.
     
  6. macrumors member

    rva1

    Joined:
    Jun 5, 2007
    #6
    Disable iPhoto..

    Why is this such an issue? :confused:
     
  7. macrumors 6502a

    ert3

    Joined:
    Dec 10, 2007
  8. macrumors 6502

    That-Is-Bull

    Joined:
    Sep 29, 2007
    Location:
    Edmond, Oklahoma
    #8
    Because it's annoying as hell, and useless for most.

    I don't see an option for this anywhere in the iPhoto preferences.
     
  9. macrumors 6502a

    Joined:
    May 23, 2007
    #9
    Ha! I think that's what it was I did. I'm away from my computer right now, but I think there may be a preference for not opening the app when a camera in hooked up.
     
  10. macrumors member

    Joined:
    Jan 7, 2007
    Location:
    Providence, RI
    #10
    I think the point of this tip is to still open iPhoto when cameras are connected, just not when the iPhone is connected.
     
  11. macrumors newbie

    Joined:
    Feb 27, 2008
  12. macrumors 6502a

    thefourthpope

    Joined:
    Sep 8, 2007
    Location:
    DelMarVa
    #12
    Multiple cameras?

    Does anyone know how to work this so that more than 1 camera will still open iPhoto?
    Thanks
     
  13. macrumors newbie

    Joined:
    Feb 5, 2008
    #13
    using multiple cameras


    Just change the line
    if device_is_connected("") then
    to:
    if not device_is_connected("iPhone") then

    This will also eliminate the need to do the usb detection steps.
     
  14. macrumors regular

    Joined:
    Jun 11, 2007
    #14
    Doesn't work. Tried it twice and watched the movie. No luck.
     
  15. macrumors newbie

    Joined:
    Feb 5, 2008
    #15
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102 Safari/419.3)

    You may need to delete the double quotes in the if statement. If the quotes look angled on the script editor, they will not work. Just delete them then retype them in.
     
  16. macrumors regular

    Joined:
    Jun 11, 2007
    #16
    Still doesn't work. Here is my exact code:

    on device_is_connected(device_name)
    set check_for_device to "ioreg -rn " & quoted form of device_name
    return (length of (do shell script check_for_device) is not equal to 0)
    end device_is_connected

    on run
    if device_is_connected("Sony DSC") then
    tell application "iPhoto" to activate
    end if
    end run
     
  17. macrumors newbie

    Joined:
    Feb 5, 2008
    #17
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102 Safari/419.3)

    I will post what ihave when I get to my MacBook tonight.
     
  18. macrumors newbie

    Joined:
    Feb 5, 2008
    #18

    Here is what my script looks like

    on device_is_connected(device_name)
    set check_for_device to "ioreg -rn " & quoted form of device_name
    return (length of (do shell script check_for_device) is not equal to 0)
    end device_is_connected

    on run
    if not device_is_connected("iPhone") then
    tell application "iPhoto" to activate
    end if
    end run
     
  19. macrumors regular

    Joined:
    Jun 11, 2007
    #19
    Well, we are almost there. With your code, my iPhone doesn't open iPhoto. BUT neither does my camera.

    It might be a lost cause
     
  20. macrumors regular

    TravisReynolds

    Joined:
    Mar 2, 2008
    Location:
    Seattle
    #20
    Thank God!

    Thank god! Every single iPhoto opens up it slows down my computer A Lot, it bugged me out so much
     

Share This Page