New answers tagged

0

An easy fix is to use EasyFind to look for and inside files. Easyfind is quick and versatile. You can select the type of files to look in if you want or just scan them all. Not as quick as Spotlight but more settings to control where you look. The app is free.


0

Spotlight let’s you exclude results quite easily using regex like syntax and SQL like syntax. Why not craft a smarter search and let it index this folder? You can drop a newer index file in it and remove that file when you wish to include results as well. Pretty low impact since you’re about to index that folder one way or another and Spotlight is very ...


6

Spotlight allows this and is my favored tool, despite how painful it is to learn how to do this from Apple's documentation alone. The man page for mdfind is almost criminally negligent for not mentioning how to search for a string, but I shall not rant too much more on that here. mdfind 'kMDItemTextContent = "this exact string"' Pay attention to the double ...


3

It might be easier to use tools dedictated for searching text within files, e.g. grep (part of macOS) or ag (brew install ag): fgrep -r "Text to match" PATH ag -F "Text to match" PATH


0

ag can search hidden files by file name. For instance: ag --hidden -g ".swiftlint.yml" ~/ How to install brew install the_silver_searcher https://github.com/ggreer/the_silver_searcher rg is faster than ag. rg --files --hidden ~/ |rg ".swiftlint.yml" How to install brew install ripgrep https://github.com/BurntSushi/ripgrep


0

For whatever reason, on my system, Spotlight does not find all .exe files. Using, separately, .exe or exe it only finds some files. Using filename.exe it does find it. As an alternative, you can use the find command from Terminal to find any file you want, e.g.: find . -type f -iname '*.exe' In the find command above . is the PWD, which by default is your ...


1

I finally figured out a way to do it. I've kept the Auto Swoosh setting on but I've changed the way I open safari. I created a new application using automator with a single applescript block. It has the following code: tell application "Safari" make new document activate end tell The order is important because its what prevents the spaces switching ...


0

I was cleaning up the thousands of CDs and DVDs that have accumulated over the decades and one got stuck in the external Mac Apple "Superdrive." I tried all the tricks to eject it, including rebooting. Then the OS wouldn't even show that the external drive existed. There were lots of suggestions online of how to eject the DVD and I tried most of them -- ...


0

From what I know that number is not a 100% based usage, i.e. that 11.9 and 9.6 do not mean it takes up 11.9% and 9.6% of the whole CPU processing power. For a dual core CPU, 10 in that column means it used up 10% of a core only, i.e. 5% of the whole CPU. So for a 8 cores CPU, 100% usage of the whole CPU the number showed for a process should be 800 but ...


0

When you close Spotlight by clicking outside it retains the text you entered in the text box. Deleting the text calmed the process down. My advice is to click/tap Esc two times when you're done with Spotlight. The first click clears the text box, the second one closes Spotlight.


1

Tip: you can go to any folder accessible from your Mac by hitting cmd+shift+G on your keyboard (whilst being in Finder) According to this answer you can do the following: • Quit Mail if it’s open. • In ~/Library/Mail/V7/MailData, delete any file that begins with “Envelope Index,” such as Envelope Index or Envelope Index-shm. • Your home Library folder is ...


1

Setting it like this worked for me to make it almost as fast as before.


-1

If you want to search .DS_Store hidden files, this command works well. du -a | grep .DS_Store


Top 50 recent answers are included