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


Click here to return to the 'Even Easier Way...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Even Easier Way...
Authored by: _merlin on Apr 22, '01 06:23:05PM

An AppleScript is the best way to do it. It kills the Dock as politely as possible. The AppleScript will tell the Dock to clean up and quit, the kill command will send it an interrupt, or terminate signal. Forcing it to quit is the same as killing it. You can make the AppleScript even simpler than in you had it. THis will work, and it's only one line:

tell application "Dock" to quit

No more end tell :-)

Vasantha Crabb



[ Reply to This | # ]
Even Easier Way...
Authored by: ascorbic on Apr 24, '01 10:27:47AM

Kill, without any argument, sends a -TERM signal, which is a graceful terminate. The equivalent of force quit is the signal -KILL.



[ Reply to This | # ]
Even Easier Way...
Authored by: _merlin on Apr 24, '01 10:46:39PM

A TERM signal causes the NSRunLoop object to exit from the main event loop immediately. This does not allow the application delegate to clean up before the task terminates. This can cause corruption of preference files. AppleScript will send a DO message to the NSApplication telling it to clean up and exit.



[ Reply to This | # ]