I have an AppleScript droplet that opens text files with Vim in the Terminal. I would like to open this script via the “Open with” dialog in DEVONthink, such that I can directly open the file in Vim/Terminal from within DEVONthink.
How can I teach DEVONthink to consider this droplet as an option for opening plain text files?
(Certainly, it would be better to teach Mac OS as a whole to recognize the droplet as an option for opening plain text files.)
I did not want that, as I don’t want to open all texts with my droplet.
However, I found a solution to my problem. I had to change the Info.plist inside the droplet by adding MacVim’s Info.plist entry “Document types” to it. Now, my droplet appears as an application that can open the same file types than MacVim, also from within DEVONthink.
Furthermore, I assigned a shortcut to the droplet. Now I can open a selected file from within DEVONthink in vim (terminal) by keystroke. This is exactly what I wanted.