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

Click here to return to the '10.7: Restart Mission Control' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Restart Mission Control
Authored by: jazzbox on Nov 14, '11 08:55:44AM
I prefer (why kill something than can quit itself?)

osascript -e 'quit application "Dock"'

[ Reply to This | # ]
10.7: Restart Mission Control
Authored by: simplebeep on Nov 15, '11 02:06:28PM

I agree, and I, for one, do prefer the osascript method. It's "cleaner," and we should all strive to keep our systems clean.

However, the killall method is more concise and requires no precise use of quotation marks (so it's easier for those new to the Terminal), and I've never heard of killall doing the Dock any harm.

It makes me wonder if the Dock application implements Sudden Termination---if so, using killall would actually be the preferred method for restarting it.

[ Reply to This | # ]
10.7: Restart Mission Control
Authored by: leamanc on Nov 29, '11 09:02:55AM

In the case of the Dock, what is the difference in the end result?

I can see the case for using the osascript method with, say, Microsoft Word or Photoshop, or some other traditional application like that.

Is there some case for shutting down the Dock in a more "clean" fashion? The killall method has always seemed to work without any bad side effects. The Dock always re-launches immediately, re-reads its preferences, and all of the other apps tied to the Dock process do the same.

Is there a potential of corrupting its preferences or something? Or is it just that you prefer to take the "cleaner" route when you can? I just ask because I have always done the killall method with the Dock, and never really worried about any bad side effects.

[ Reply to This | # ]