|
|
Even Easier Way...
I think that the easiest as well as safest way to do this is to make an applescript like this one:
Even Easier Way...
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:
Even Easier Way...
Kill, without any argument, sends a -TERM signal, which is a graceful terminate. The equivalent of force quit is the signal -KILL.
Even Easier Way...
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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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.08 seconds |
|