I need to hide all files with .pek extension on Finder (macOS Sierra) automatically.
MacOS – Hide all files of the same extension in Finder
file extensionsfindermacos
Related Question
- Hide all files with a specific extension from Finder
- MacOS – How does Finder decide whether a file extension needs to be hidden
- MacOS – File extension shows in BASH but not in Finder
- MacOS – How to use AppleScript to un-hide a file’s extension
- In Catalina, set default for saving files to show extension
- Hide specific filetypes in finder
- Finder: Show/Hide hidden files with non-US keyboard
Best Answer
OK I've changed the Peter Hosey's fs-notifier, so that it will set the newly created
.pak
files hidden. You will need Xcode for the compilation.Please change those lines in his code:
In Notifier.m change 25th line to:
In fs-notifier.m file change the whole body of the
gotEvent
fuction (lines 34+) to:Note: In order to compile the sources you might need to set the 64bit architecture.
After the compilaton you'll launch the program with the path to the directory you want to monitor.
I've tested it and it works, however I don't know what's the impact on the system.
Edit: To hide
.pak
files already created, run this command:Answer from superuser.