Re: annoying... iphoto opens everytime i connect my iphone...
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("Canon Digital Camera") then tell application "iPhoto" to activate
end if
end run
Didn't compile it but saved a few of you lazy folk the time of deciphering that screenshot.