Re: Telling if a Mac is equipped with a built-in iSight
Re: Telling if a Mac is equipped with a built-in iSight
- Subject: Re: Telling if a Mac is equipped with a built-in iSight
- From: Christopher Stone <email@hidden>
- Date: Wed, 28 Sep 2011 05:14:38 -0500
On Sep 28, 2011, at 04:51, Jim Thorton wrote: If I run the AppleScript code that Mr. Cleveland gave me on the latest iMac model (where ioreg fails) with OS X Lion, it returns lines including 'iSight' as follows.
______________________________________________________________________
Hey Jim,
I see the output does not mention an iSight Camera, but as Ezekiel said:
Remember that its now called a FaceTime camera.
It does return a record for the: FaceTime HD Camera (Built-in)
What happens when you run ioreg and search for 'FaceTime' on the models that don't respond to iSight?
If indeed it's the name change that's at issue:
set cmd to "ioreg | egrep -i 'iSight|FaceTime'" do shell script cmd
This is consistently faster on my machine than the system profiler method.
OR
set cmd to "system_profiler SPUSBDataType | sed -En '/iSight|FaceTime/,/Current Required/p'" & ¬ "| sed -E 's/^[ ]+//'" set iSightReco to do shell script cmd
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden