I wrote a quick test to see whether a Mac supports motion sensors. The variable testSMS should return either true or false depending on whether sudden motion sensors are supported. As both my Macs do support this I would like to test the code on a computer that doesn’t. Could someone confirm this?
set testSMS to (do shell script "ioreg -l | grep SMCMotionSensor") contains "active"
Hi Stadsman,
I have an Intel MacBook w/SMS sensor. I ran StefanK’s script and the result was “True”. I hope this helps you. As far as I am concerned, it works.
All the best,
Chris D.
Model: Intel MacBook
AppleScript: 2.11
Browser: Safari 419.3
Operating System: Mac OS X (10.4)