1

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.

5
  • Maybe this- developer.apple.com/library/archive/documentation/Carbon/… as a starting point?
    – fd0
    Aug 8 '18 at 20:41
  • Here's a pretty detailed breakdown how to do it in Tex. What does 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. apple.stackexchange.com/questions/206328/…
    – bmike
    Sep 24 '18 at 13:27
  • @fd0 thank you for the pointer, but this seems to be to support file types, not applications.
    – Pascal
    Dec 4 '18 at 21:47
  • 1
    @bmike thank you for the pointer! mdls helped me find differences between Emacs and my Spacemacs Bundle. Copying the Info.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 4 '18 at 21:54
  • Perfect. Glad you've made progress - it's great if you want to pop a proper answer explaining what you did and then marking the accepted tick. You can always take away the "answered" check if you want more answers to this.
    – bmike
    Dec 5 '18 at 0:31

You must log in to answer this question.

Browse other questions tagged .