Adding item to Dock
Adding item to Dock
- Subject: Adding item to Dock
- From: Andy Rosado <email@hidden>
- Date: Thu, 07 Jun 2007 12:55:00 -0400
- Thread-topic: Adding item to Dock
I've found and tried to follow other posts about adding items to the dock
during install, The problem I am having is that the script I wrote does not
work as a postflight but it does work when I run it directly from Terminal.
I can tell that the package is running the script because I can see the dock
refresh. The script is simply:
#!/bin/sh
defaults write com.apple.dock persistent-others -array-add
'<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString
</key><string>/Applications/test.txt</string><key>_CFURLStringType</key><int
eger>0</integer></dict></dict></dict>'
killall -HUP Dock
exit 0
Thanks,
Andy
_______________________________________________
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