Skip to main content
Share Your Experience: Take the 2024 Developer Survey
6 votes

Finding where program lives

Given you say files open with the program, open one of those files, which will open the program and add it to the Dock, so you can command-click the app in the Dock to reveal its location.
grg's user avatar
  • 202k
4 votes
Accepted

Is there any documentation on the expression language supported by Spotlight calculations?

Not sure if there is an Apple document on this at all but here are some of the mathematical functions and symbols you can use in formulas while making calculations with Spotlight of macOS Ventura (13....
Alper's user avatar
  • 3,966
4 votes
Accepted

Spotlight Not Showing Core Applications on macOS Sonoma 14.0: How to Fix?

Solved ChatGPT suggested it might be corrupt indexing. And offered a step-by-step solution via Terminal. This solved the problem for me. I had tried these from other sources. Adding and removing HD ...
TheRawPerformer's user avatar
3 votes

When I save a photo in MacOS Messages, where does it go?

There are three ways I can think of to get around this, & a 'get out of jail free' card for existing images. If you've already sent it as a Message - right click the image & select 'Show in ...
Tetsujin's user avatar
  • 116k
3 votes
Accepted

On-Click Shortcut to Open File in Finder

Cmd ⌘ R is almost global for 'reveal in Finder'. It works from Spotlight & Find. I'm not sure when this changed, but in Ventura it also works for an Alias. In Mojave, for an Alias, 'Reveal ...
Tetsujin's user avatar
  • 116k
3 votes
Accepted

mdutil using a lot of CPU after upgrading to Ventura 13.4.1

Before running any command you should read the man page. By reading man mdutil, you will discover that the purpose of mdutil is to manage the metadata stores used by Spotlight. I don't think you used ...
Gilby's user avatar
  • 11.2k
3 votes
Accepted

launchd hitting every modified file every 30 seconds

Sadly, this is built-in deep into launchd. It is hardcoded to call sync(2) every 30 seconds and there's little that can be done about it... /* launchd.c */ /* ... */ int32_t launchd_sync_frequency = ...
anpep's user avatar
  • 46
3 votes
Accepted

How to exclude a folder from `find`?

In the first command, the name of the directory you want to prune is just '.Spotlight-V100' (without the trailing slash): find . -name .Spotlight-V100 -prune -o -type f
Linc D.'s user avatar
  • 840
2 votes
Accepted

What does the & operator do in the spotlight's calculator?

It’s a bitwise AND operator. Looking at your first example: 5 & 4 = 1. 101 (5 decimal) 100 (4 decimal) Answer has a 1 only in positions that have a 1 in both operands, which is just the most ...
McGordon's user avatar
  • 471
2 votes
Accepted

My Spotlight opens the Applications folder instead of opening the application

Had the same problem in Feb 2024 on Mac OS Sonoma. Solved it by: Go to System Preferences > Siri & Spotlight Deselect Documents from the long list of items that Spotlight is indexing [ ...
mircealungu's user avatar
2 votes

Apple Mail: Search and smart folders no longer work

After upgrading today to MacOS 14.2, the problem was fixed! Now I can click on smart folders and they show all e-mails immediately! I'm so happy that Apple has finally fixed this without me needing to ...
fredlcore's user avatar
2 votes

How to list the content of a whole drive to keep it searchable when disconnected?

I'd have a look at NeoFinder. It catalogues entire drives - it started off 25 years ago as CDFinder, for cataloguing your backup CDs but has expanded quite a bit since then. You can index any mounted ...
Tetsujin's user avatar
  • 116k
2 votes

How to list the content of a whole drive to keep it searchable when disconnected?

File List Export does exactly what you want. Give it a folder (or whole drive) and its lists all files. Export to CSV and import it into Numbers. Numbers might have problems with a large listing - ...
Gilby's user avatar
  • 11.2k
2 votes

Thousands of random files (.h, .py, .res, .str, and more) in Finder searches

Given the behaviour has changed between devices and, maybe, macOS versions, be sure to tell Apple about this regression. You can try rebuilding the Spotlight index and/or excluding the problematic ...
Graham Miln's user avatar
2 votes

Is it possible to run commands from spotlight?

You could use Raycast, it's an interface very similar to Spotlight, but it allows you to create and call (even with parameters) your own shell scripts from the search box. See more details in the docs....
digitalguy99's user avatar
2 votes

How to search file contents on iOS?

Store your files in the files app on iOS and iPadOS and then the contents are indexed. Similar to macOS, once you search for a string, you can restrict it to the current folder if desired. https://...
bmike's user avatar
  • 237k
2 votes

Finding where program lives

Here's a slightly faster invocation of find than the other answers posted that will only process directories named *Foo*.app, since a macOS app bundle is always a directory, and always has an .app ...
luckman212's user avatar
  • 3,193
1 vote

How can I prevent the Spotlight shortcut from being re-enabled?

I tried the steps from https://old.reddit.com/r/MacOS/comments/194xe60/spotlight_keyboard_shortcuts_reset_after_every/kjzwhif/ and tentatively I think it worked! If it was caused by a corrupt ~/...
user448830's user avatar
1 vote

How many gigs does it take to spotlight index 550 gigs?

It takes several days for the spotlight index to compile. In my case it was four or five days. Around day 2 it dropped to 220 gigs, but then magically it went back up to where it was before the ...
bobsmith76's user avatar
1 vote
Accepted

Finding where program lives

Open Terminal and enter find ~ -name "*xxx*" -print > /tmp/tmp cat /tmp/tmp where xxx is the name of the app (as appears in the menu bar when running). If that doesn’t find it, change ~ ...
WGroleau's user avatar
  • 4,975
1 vote

macOS 14.1.1 Spotlight crashing

Spotlight problems (regardless of whether they are crashes, incomplete or duplicate results, or high CPU usage) can usually be solved by completely rebuilding the database/index. Try these commands ...
luckman212's user avatar
  • 3,193
1 vote

Accessing 'Other Users'

Apple is rather opaque about how it defines its categories in the Storage breakdown (and some rely on accurate Spotlight indexing). On my Mac (Sonoma), it says "Other Users & Shared", ...
benwiggy's user avatar
  • 36.3k
1 vote
Accepted

Unexpected results using info from `mdls` to search via `mdfind`

I can confirm the behaviour you are seeing with a test on my Mac. But that is only when I, like you, enter the time without the time zone. The file creation date/time is 2023-08-14 21:14:13 +0000 (as ...
Gilby's user avatar
  • 11.2k
1 vote

Spotlight always 1 Search Behind

I would recommend deleting the Spotlight Cache: Enter the following command in Terminal: sudo mdutil -E / Press ⏎ Return. You'll be prompted for your password. Enter it and press ⏎ Return again. This ...
Joaquin's user avatar
  • 111
1 vote

How to disable Developer and Web Searches in Spotlight?

The 'Developer' search results are enabled by default but the toggle to disable them is only visible if Xcode is installed. This seems to be a long-standing bug confirmed to happen on clean installs ...
mdcq's user avatar
  • 266
1 vote

mdfind after x time today?

'kMDItemDateAdded = $time.yesterday' returns nothing because $time.yesterday is the exact time of yesterday at 00:00:00. So for dates it is getter to use comparisons, like this: mdfind -onlyin . '...
Gilby's user avatar
  • 11.2k
1 vote

No results searching for Google Drive files on mac

The folders somebody else shared from their MyDrive with you, are showing up as aliases in your MyDrive, and they point to a certain .shortcut-targets-by-id folder (go to get info on the alias, and ...
zsmagol's user avatar
  • 31
1 vote

No results searching for Google Drive files on mac

You need to rebuild the Spotlight index. See the solution here https://support.apple.com/en-us/HT201716
GabeLon's user avatar
  • 11
1 vote

Odd spotlight reindexing problem. Privacy List Error The item couldn’t be added or removed because of an unknown error

I know it's over 3 years late but I'm just leaving this possible solution here in case anyone else stumbles across this super specific issue (I also uninstalled paragon's NTFS for mac on macOS ...
davthenub's user avatar
1 vote

Spotlight Date calculator

In macOS Ventura 13.5 the following time calculation syntax works: Entering 2h+3h20m-2h in Spotlight returns "3 hours 20 minutes" EDIT: For whatever reason, it appears that "m" can ...
Johnny's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible