Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Display the clock in a window and in the menu bar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Display the clock in a window and in the menu bar
Authored by: chally on Apr 19, '04 03:01:21PM
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


[ Reply to This | # ]