Re: Adding item to Dock
Re: Adding item to Dock
- Subject: Re: Adding item to Dock
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 7 Jun 2007 21:42:26 +0200
Do you require some admin or root authentication in your package?
On jeudi, juin 7, 2007, at 06:55 PM, Andy Rosado wrote:
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:
email@hidden
This email sent to email@hidden
-----------------------------------------------------------------------
----------------
Orange vous informe que cet e-mail a ete controle par l'anti-virus
mail.
Aucun virus connu a ce jour par nos services n'a ete detecte.
_______________________________________________
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