Improved the dock position scripts to use osascript, avoiding the need
to restart the Dock process.