|
|
10.3: Display the clock in a window and in the menu bar
Well, they didn't feel like putting this up as a hint, so I'll paste it in here. I don't understand why they publish worthless "hints" that are plainly obvious OS features but they won't publish useful scripts and techniques when they're provided, so here it is as a reply to an earlier related and useful hint.
Apple really screwed up the clock application in OS X v10.3 Panther by making it no longer a real application so you can't easily hide the clock window or configure the clock. I got tired of screwing with the System Preferences to show and hide the clock when I want to watch a movie, so I wrote this simple script to toggle the viewable state of the clock. Hope you find it as useful as I have:
-- Toggle Clock.scpt tell application "Finder" to set theCount to ¬ the count of (processes whose name is "WindowClock") if theCount > 0 then tell application "WindowClock" to quit else tell application "WindowClock" to run end if
10.3: Display the clock in a window and in the menu bar
Okay...this has now been published as a hint after all [sheepish grin]. However, a poster pointed out over there that the Finder is no longer the best app to ask about processes, but rather System Events. The script should probably now read:
-- Toggle Clock.scpt tell application "System Events" to set theCount to ¬ the count of (processes whose name is "WindowClock") if theCount > 0 then tell application "WindowClock" to quit else tell application "WindowClock" to run end if |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|