You can create executable Application Bundles containing a script with the same name (e.g. Example.app
and Example.app/Example
).
Unfortunately, these applications do not seem to get indexed by Spotlight.
Automator does make it easy to wrap scripts as applications, but it does not find applications that are not in the default path (e.g. wine
installed via homebrew
). Sourcing shell init files does not seem to help with that, and while I could use absolute paths, I'd rather have the scripts be portable.
I would prefer to understand and fix the underlying problem than having to use another tool like Platypus.
mdls
show for your files you want to index? Just edit that in your post body and then @ me here if I don't see the update. https://apple.stackexchange.com/questions/206328/how-to-search-latex-documents-in-spotlight – bmike Sep 24 '18 at 13:27mdls
helped me find differences between Emacs and my Spacemacs Bundle. Copying theInfo.plist
from Emacs and adjusting the executable name in it - which I forgot to do last time I tried and copied that file - turned out to work. I could not work out what exactly in that file was needed, but in this case, this solves my problem, and I'll know where to look more if need be. – Pascal Dec 04 '18 at 21:54