 HiVoltPremium join:2000-12-28 Toronto, ON kudos:11 | reply to nu2this How about posting the code or link, instead of a tiny screenshot? -- ,,!,,('-'),,!,, |
 | 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. |