Dock-Items
Dock-Items
- Subject: Dock-Items
- From: Alexander Thiel <email@hidden>
- Date: Thu, 7 Jul 2005 14:48:09 +0200
Hi everyone,
I created a package to distribute it via ARDm this works very
smoothly. I'm searching for a solution to add items to the dock and
to remove items either.
To add items to the Dock I created this little Shell-Script, which I
use as a postflight script:
#!/bin/bash
x=`ls /Applications/ | grep application-name*`
plutil -convert xml1 ~/Library/Preferences/com.apple.dock.plist
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/'$x'</
string><key>_CFURLStringType</key><integer>0</integer></dict></dict></
dict>'
plutil -convert binary1 ~/Library/Preferences/com.apple.dock.plist
killall -TERM Dock
So adding items to the Dock works very well, but I couldn't find a
solution to remove items from the Dock.
Does anyone know of a way how to do this?
Thanks in advance for any info.
Alex
--
Alexander Thiel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden