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