• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding item to Dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Adding item to Dock
      • From: david savage <email@hidden>
    • Re: Adding item to Dock
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: [slightly OT] uniquely identifying a computer
  • Next by Date: Re: [slightly OT] uniquely identifying a computer
  • Previous by thread: Re: [slightly OT] uniquely identifying a computer
  • Next by thread: Re: Adding item to Dock
  • Index(es):
    • Date
    • Thread