• 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
Re: Add/Remove from Dock?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add/Remove from Dock?


  • Subject: Re: Add/Remove from Dock?
  • From: "Laine Lee" <email@hidden>
  • Date: Tue, 27 Jun 2006 09:35:44 -0500

On 6/27/06 5:01 AM, "email@hidden" <email@hidden> wrote:

> Take a look at ~/Library/Preferences/com.apple.Dock.plist and the use of the
> command line tool 'defaults' (man defaults for help.)
>
> You also need to restart the dock after you've edited the .plist:
>
> do shell script "killall Dock"


Since this has come up...

Why does the following Applescript, if run repeatedly, keep adding
occurrences of TextEdit to my Dock? My interpretation of manual for defaults
leads me to believe that duplicate entries would not result from such a
command.

The only workaround IÕve found is to search for the entry first, then
not add it if itÕs found. Thanks.

do shell script "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/TextEdit.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'"

tell application "Dock" to quit


--
Laine Lee
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Add/Remove from Dock?
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Create an email with an attachment
  • Next by Date: Re: Create an email with an attachment
  • Previous by thread: Re: Add/Remove from Dock?
  • Next by thread: Re: Add/Remove from Dock?
  • Index(es):
    • Date
    • Thread