Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to have started Chrome without the build in Flash

via console you add the Parameters


which works fine, now i would like to have a Dock Icon which passes this parameter along

I have an which encapsules the start up, but how du i get it somehow automatically to the dock.

share|improve this question
Do you mean how do you get the file onto the Dock outside of just dragging it into place? – Nicholas Smith Sep 13 '12 at 9:26
jep i have a commandline skript additemtodock found on the net but it's not working always, so i am looking for something to get it into the dock – Dukeatcoding Sep 13 '12 at 9:30

This worked for me: defaults write persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"; killall Dock.

Questions about adding applications with command line arguments to the Dock:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.