Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have an application that creates MANY .log, .upload, and .json files each day, so that when I go to my "Today" smart folder, it's all clogged up with those. I'd like to hide all three of those file extensions from finder, but I'm not sure the best way to do so given that I'd need the solution to work on new files with those extensions as well as existing ones.

Alternately, I could hide all existing and new files in a particular folder since that folder houses all of those, but I want them also to be invisible to my smart folders.

Thanks for any help you can provide. I'm confortable USING scripts and automator and such, but I don't know the commands myself, so the more specific you can be in your answers, the better.

Thanks!

share|improve this question
    
Is your goal to hide them from the "Today" Smart Folder or to hide them altogether? Keep in mind that hiding them altogether will probably make it impossible to locate the files with Spotlight & Finder, and may require you to use Terminal to access them. Your clarification will help provide a better answer. –  bispymusic Mar 18 '13 at 13:54
    
I don't need to be able to locate the files, so using Terminal to find them would be fine. Hiding them only from the smart folder would be OK if that's the best solution, but I'd prefer to hide them completely. –  Julie Mar 18 '13 at 14:11

1 Answer 1

If you just want to modify the saved search, copy it somewhere from /System/Library/CoreServices/Finder.app/Contents/Resources/CannedSearches/Today.cannedSearch, show package contents and open search.savedSearch in a text editor, and add this to the first RawQuery key:

&& kMDItemFSName != *.log && kMDItemFSName != *.upload && kMDItemFSName != *.json

You can drop it on the sidebar by holding command.

share|improve this answer
    
Thanks. This worked! I also realized I could just create a new smart folder with files that had only been OPENED today, not modified, created, etc. So simple! I'd still love to just hide those irritating files, but this will do for now. –  Julie Mar 18 '13 at 16:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.