how to remove item from dock using terminal

I saw an earlier post about removing items from docks, and someone's solution was to run the following AppleScript:


tell application "System Events"

set dockPlistFile to property list file "~/Library/Preferences/com.apple.dock.plist"

tell dockPlistFile

tell property list item "persistent-apps"

set appTileItems to value of (every property list item whose value of property list item "tile-data"'s property list item "file-label" is not "app name")

set its value to appTileItems

end tell

end tell

end tell

tell application "Dock" to quit


I'm not sure exactly what I have to change to make this work for Terminal (i.e. remove the Terminal Icon from the dock). Which parts must be changed?

MacBook Air, OS X El Capitan (10.11.5), null

Posted on Apr 3, 2017 12:09 AM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to remove item from dock using terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.