when the existing button does not work, make it disabled.
For example, for the category of application is a web browser, it does not make sense to "Show in Enclosing Folder". Also when for some applications that has no files - disable the "Open File" button.