MAC OS - Remove Dock Icon?


1 comment

  • Avatar

    We have been able to remove an icon from the Dock in OS X El Capitan by using a modified version of the bash script from this post in the Apple forums:

    #Change name_of_app to the app you want to remove  
    dloc=$(defaults read persistent-apps | grep _CFURLString\" | awk '/name_of_app/ {print NR-1}')  
    /usr/libexec/PlistBuddy -c "Delete persistent-apps:$dloc" ~/Library/Preferences/  
    killall Dock

    We had to subtract 1 to the index, as it seems to start counting on 0 but awk counts from 1. Could you check if it also works on previous version of OS X?

Please sign in to leave a comment.