Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If I move an app in Launchpad and then I "killall Dock" from the terminal, the Launchpad sometimes gets its previous configuration so my changes are lost. How can I restart the Dock without losing the Launchpad configuration?
Something like osascript -e 'quit app "Dock"' might work. If not, you could also quit and reopen Dock by logging out and back in.
osascript -e 'quit app "Dock"'