PDA

View Full Version : Keep iPhoto From Launching When You Plug In Your iPhone




MacRumors
Feb 26, 2008, 07:03 PM
http://www.macrumors.com/images/macrumorsthreadlogo.gif (http://www.macrumors.com)

If you have an iPhone and plug it in regularly, you will probably agree that the following tip from 37signals.com (http://www.37signals.com/svn/posts/873-tip-prevent-iphoto-from-opening-when-you-plug-in-your-iphone) (via Arstechnica (http://arstechnica.com/journals/apple.ars/2008/02/25/restore-sanity-stop-iphoto-from-auto-launching-with-iphone)) 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 (http://www.37signals.com/svn/posts/873-tip-prevent-iphoto-from-opening-when-you-plug-in-your-iphone). 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.


http://images.macrumors.com/article/2008/02/26/195624-Image Capture002_500.jpg


If this sounds like your cup of tea, then by all means check out the details of implementing it (http://www.37signals.com/svn/posts/873-tip-prevent-iphoto-from-opening-when-you-plug-in-your-iphone).

*only a little bit, though

Article Link (http://www.macrumors.com/iphone/2008/02/26/keep-iphoto-from-launching-when-you-plug-in-your-iphone/)



kissmyaxe
Feb 26, 2008, 09:18 PM
Awesome! I've been wanting to disable this for the iPhone since the darn thing came out!

bennyboi
Feb 26, 2008, 09:52 PM
Nice, but this has been in the forums for some time

http://forums.macrumors.com/showthread.php?t=418448&highlight=iphone+launches+iphoto
:)

EDIT: aaah, I see they detail it so your camera still launches iPhoto. I'll keep my the shamed above comment for all to see.
:(

crackermac
Feb 26, 2008, 10:17 PM
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.

severe
Feb 27, 2008, 01:32 AM
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.

rva1
Feb 27, 2008, 06:43 AM
Awesome! I've been wanting to disable this for the iPhone since the darn thing came out!

Why is this such an issue? :confused:

ert3
Feb 27, 2008, 09:08 AM
Heaven forbid we open iPhoto preferences.

That-Is-Bull
Feb 27, 2008, 02:50 PM
Why is this such an issue? :confused:

Because it's annoying as hell, and useless for most.

Heaven forbid we open iPhoto preferences.

I don't see an option for this anywhere in the iPhoto preferences.

severe
Feb 27, 2008, 03:38 PM
Heaven forbid we open iPhoto preferences.

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.

jackbenimble4
Feb 27, 2008, 05:27 PM
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.

I think the point of this tip is to still open iPhoto when cameras are connected, just not when the iPhone is connected.

theginkamos
Feb 27, 2008, 11:16 PM
Fantastic. Thanks.

thefourthpope
Feb 28, 2008, 09:14 PM
Does anyone know how to work this so that more than 1 camera will still open iPhoto?
Thanks

williabm
Feb 29, 2008, 02:35 PM
Does anyone know how to work this so that more than 1 camera will still open iPhoto?
Thanks


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.

imacericg
Feb 29, 2008, 04:00 PM
Doesn't work. Tried it twice and watched the movie. No luck.

williabm
Feb 29, 2008, 05:28 PM
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)

Doesn't work. Tried it twice and watched the movie. No luck.

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.

imacericg
Feb 29, 2008, 05:47 PM
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.

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

williabm
Feb 29, 2008, 05:50 PM
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)

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.

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

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

williabm
Feb 29, 2008, 08:03 PM
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.


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

imacericg
Feb 29, 2008, 08:44 PM
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

TravisReynolds
Mar 2, 2008, 03:01 PM
Thank god! Every single iPhoto opens up it slows down my computer A Lot, it bugged me out so much