Security System with Hazel

This is a first post for me, although I have been using hazel for as long as I have had my MBP.
Hazel Security:
Needed: Hazel, DropBox (of http://www.getdropbox.com), isightcapture shell script, laptop/desktop with iSight built in
DropBox is just a great backup tool, and for me it is a perfect solution. Essentially, it automatically syncs folders and files on any computer with any other computer connected anywhere. There are many other services that do this, but the idea is the same.
Steps:
Setup Hazel to monitor a file name. I have set mine to monitor a file named "RemotePic - OFF.txt" so that when I change OFF to ON it triggers the rule.
When the rule is matched, run the following shell script:
This will take 5 time stamped pictures of whoever is using the computer and upload them via dropbox.
The best part is that since dropbox and hazel are constantly operating, the pictures are taken on average only 30 seconds after I change the filename on another computer. Uploaded another 15 after that.
If this computer ever gets stolen, I can have a pic of the thief in the first minute s/he is on the internet.
Hazel Security:
Needed: Hazel, DropBox (of http://www.getdropbox.com), isightcapture shell script, laptop/desktop with iSight built in
DropBox is just a great backup tool, and for me it is a perfect solution. Essentially, it automatically syncs folders and files on any computer with any other computer connected anywhere. There are many other services that do this, but the idea is the same.
Steps:
Setup Hazel to monitor a file name. I have set mine to monitor a file named "RemotePic - OFF.txt" so that when I change OFF to ON it triggers the rule.
When the rule is matched, run the following shell script:
- Code: Select all
for ((i=0; i<=5;i++))
do
date=$(date +%y%m%d%H%M%S).jpg
/Applications/Utilities/isightcapture $date
sleep 1
done
This will take 5 time stamped pictures of whoever is using the computer and upload them via dropbox.
The best part is that since dropbox and hazel are constantly operating, the pictures are taken on average only 30 seconds after I change the filename on another computer. Uploaded another 15 after that.
If this computer ever gets stolen, I can have a pic of the thief in the first minute s/he is on the internet.