/ Published in: AppleScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(* The MacOS X clock is NOT set properly unless the Date & Time PrefPane is opened. *) -- Open the Date & Time PrefPane do shell script "/usr/bin/open /System/Library/PreferencePanes/DateAndTime.prefPane" -- Keep it open for a couple of seconds do shell script "/bin/sleep 10" -- Close the SysPrefs quit application "System Preferences" (* Done. The clock should be set correctly now. *) (* When saved as an application, this script can be used to set the clock on startup. Place it anywhere you like and add it to the startup items in the Users PrefPane. *)