Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lamina

macrumors 68000
Original poster
The dock sometimes crashes on my iMac, and I don't want my family to have to go to terminal and type killall Dock, so is there a way I can make a script file that they can double-click on the desktop to run that command?
 
Why not write an AppleScript with that exact command, and save it on the desktop as a self-contained script? Then they could double-click on it as you said.

Or, they could 'Force Quit' the dock from within Application Monitor.
 
lamina said:
The dock sometimes crashes on my iMac, and I don't want my family to have to go to terminal and type killall Dock, so is there a way I can make a script file that they can double-click on the desktop to run that command?

open up Script Editor, and enter this:
tell application "Terminal"
activate
do script with command "killall Dock"
end tell
tell application "Terminal"
activate
do script with command "killall Terminal"
end tell


Save it as whatever you want. I named it "killDock"
This will open Terminal, kill the Dock, and close Terminal.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.