Preventing applications from creating folders in your documents folder

applicationsuti

I have two applications (Microsoft RDP Client and Parallels Desktop) that insist on creating their own folders in my Documents folder. They use those to store user-specific files, settings, profiles and such.

My Documents folder is neatly organized and I don't want applications creating their folders in it. Parallels Desktop has a setting allowing me to change the path for its folder, but the Microsoft RDP client doesn't seem to.

Is there a straightforward way to prevent an application from automatically creating folders in Documents?

In my specific case, I'd be happy with a solution that prevents RDP Client from creating the directory altogether, e.g. by creating a hidden locked entry with the same name as the folder it wants to create.

Best Answer

I understand your frustration, but I suggest you just hide the offending folders from Finder, you can easily do that with the following terminal command:

chflags hidden ~/Documents/HideMe

Preventing those folders to be created is likely going to cause problems running those applications.