• 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
Remove icon from dock after adding it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove icon from dock after adding it


  • Subject: Remove icon from dock after adding it
  • From: Laine Lee <email@hidden>
  • Date: Thu, 23 Jul 2009 11:18:33 -0500
  • Thread-topic: Remove icon from dock after adding it

Title: Remove icon from dock after adding it
I added an icon to the dock by editing its plist with an Applescript:

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/Custom Tool.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'"

How might I alter the defaults command used in that script to reverse the action (remove the icon from the dock) leaving the dock in its previous state? Can I use “defaults find” to find the key then use “defaults delete to delete it? I’ve read the manual for defaults and I still need help. Thanks.

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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Remove icon from dock after adding it
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: Photoshop Action
  • Next by Date: Re: Variables pane of Script Debugger
  • Previous by thread: Re: Adding directory to Spotlight Privacy ?
  • Next by thread: Re: Remove icon from dock after adding it
  • Index(es):
    • Date
    • Thread