Apple - Magic Mouse - The world’s first Multi-Touch mouse.
Download Magic Mouse here:
1. Create the following applescript which sets the date back to Jan.01.2011:
do shell script “date 010101002011″ password “your-password-here” user name “your-username-here” with administrator privileges
Save it anywhere you want, e.g. /~/Library/Scripts/ and name it to “settopast.scpt”:
2. Create a plain text document (with TextEdit):
Save it anywhere, let’s say again /~/Library/Scripts/ and name it to e.g. “setthedateatlogin.sh” – be aware to save it with the suffix .sh as it should work as your loginhook shellscript.
The most critical thing here is to store your administrator password unencrypted. Even if you save your applescript as “executable only”, opening the file in a texteditor results in showing your password somewhere inside the text. Perhaps saving the applescript as an “executable only” script-application (not readable anymore!) might be working, but I haven’t tried it yet.
3. The next step is defining the login hook. For this browse to: Mac OS X: Creating a login hook
(/path/to/script refers to the shellscript “setthedateatlogin.sh”)
4. On my Macs I don’t syncronize the date automatically so I added an applescript application (executable-only!) to the LoginItems in the Accounts PrefPane. This connects you to the timeserver once:
Do shell script “ntpdate time.euro.apple.com” password “your-password-here” with administrator privileges.
5. Please, run every script seperatly to see if the results are as expected. If so, restart your Mac – MagicDriver shoudn’t complain anymore unless you open it for configuration purpose.