1

I am using chflags hidden method to hide apps in /Applications folder.

It immediately hides the application in Finder, but when I click on the Applications folder in Dock (image below), I can still see the hidden applications there, until I restart the computer.

So the question is: Is it possible to also update the visibility of the application in the Dock preview to Applications folder without restaring the computer?

enter image description here

14
  • 1
    You actually shouldn't be needed to kill finder after setting chflags. My best guess is that you are running El Capitan or anything after that. I recently answered a question where OP was trying to do the same thing. OP was pretty tight lipped when it came to giving additional info, but in my last comment to my own answer I came to the realization that it likely worked for me because I've disabled SIP. I'm pretty sure this is the reason it's not working for you as well.
    – Joonas
    Jul 23, 2017 at 17:02
  • @Joonas: SIP is disabled. Running Sierra. Basically It works partially without restarting computer - if I click on Dock -> Applications -> Open in Finder, then even without restarting the app folder is hidden. However, it's not hidden right in Dock->Applications, until I restart.
    – Pablo
    Jul 23, 2017 at 17:06
  • These two paths... I don't quite understand what they are. Shouldn't both open in Finder regardless?
    – Joonas
    Jul 23, 2017 at 17:11
  • I've added a stab at guessing your spctl --status and OS version - please correct @pablo. I'll delete our other comments since we're beyond them now. I'm curious as to the real nut to be cracked here now that SIP is implicated.
    – bmike
    Jul 23, 2017 at 17:13
  • I've updated my question to depict 2 paths.
    – Pablo
    Jul 23, 2017 at 17:22

1 Answer 1

1

I tested it and doing killall Dock in Terminal.app does the job.

This specific killall command will essentially restart Dock and therefore the Applications folder preview gets updated as well.



Alternatively you can open /Applications/Utilities/Activity Monitor.app search for Dock, select it and click the X in the top left corner of the window.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .