Sunday, September 13, 2009

Enable and Disable the built in iSight.

This can be accomplished by changing the permissions of 2 files.  It can be done by removing rwx for all users (ie chmod a-rwk) on the following

/System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component/Contents/MacOS/QuickTimeUSBVDCDigitizer

/System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions/A/Resources/VDC.plugin/Contents/MacOS/VDC

This has been tested on OSX 10.5.7 (MacBook) and OSX 10.5.8 (MacBook Pro)

A DMG with the completed script and application can be found here.

The script should go somewhere in your path (/usr/sbin or such) and have the appropriate permissions and owner.  You can then run it from a utility such as ARD or LANrev, or from a SSH login by issueing the command with the appropriate option use -h or -help for info.

The Application has a copy of the isighter script contained in it's bundle.  The actual Applescript is an example of how to run a terminal command with admin privileges and can be found here.

ENJOY!