defaults write com.apple.dock persistent-apps -array-add '<dict>
<key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString
</key><string>/Path/to/the/Programme.app</string><key>_CFURLStringType
</key><integer>0</integer></dict></dict></dict>'
Obviously, be careful not to install the icon every time the installer runs, or you'll have a Dockful of your-apps!![]()
defaults write com.apple.dock persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Automator.app/</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>";
Hmm...
Ok, try this....
Might be able to put in a dock restart on it, but I have to decide this: The app when installed is defaulted to the apps folder, but is changeable.
killall "Dock"
Obviously, be careful not to install the icon every time the installer runs, or you'll have a Dockful of your-apps!![]()
I think killing the dock is fine. The iLife 08 installer does that to add the new iMovie to the dock.