Yet Another SmackBook Script
Simple steps to command your macbook hitting it. You need a Leopard Mac OS X to use the script below.
This is a bad quality video I took just to demonstrate what you will get.
Download AMSTracker, a command-line program that retrieves acceleration data from the Sudden Motion Sensor in Apple notebook computers (Macbook and Macbook Pro has it).
Download my smackbook.pl modified script. Thanks to the Medallia blog for the original one (SmackBook Pro)
Put the AMSTracker file and the smackbook.pl into the same directory (this example is based on the directory: ~/Desktop/smackbook)
If you run the script without arguments it tells you the possible options you can use (only one):
~/Desktop/smackbook:./smackbook.pl
Possible action arguments are: “places” - “itunes” - “dashboard”
- “desktop” - “expose”
Action argument explaniation:
- places: switch between desktop places (unfortunately the script doesn’t recognise well if you hit on the left or right)
- itunes: play the next song on the playlist you are on
- dashboard: activate/deactivate the dashboard
- desktop: show/hide the desktop
- expose: activate/deactivate the exposè
You can choose only one action every time you run the script, so decide how you would like to impress your friends, run the command and start smacking your macbook ;)
~/Desktop/smackbook:./smackbook.pl places
AMS hardware present and initialized
WARNING
I know it is obvious but remember there is the possibility to damage your macbook hitting it, particularly the hard disk may suffer it. So you have been warned.
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.




No Responses to “Yet Another SmackBook Script”
No comments yet.
Leave a comment