I know there are lots of questions about 'Show in Finder' already, but none of them can fit my need.
I want to reveal a file in Finder with a hotkey when using my text editor (any apps like that). For example, in Xcode, I left click to select a .h file and press a hotkey, then Finder opens and jump to where the .h file is. In other words, the workflow is a shortcut to right click on a file and click 'Show in Finder' in the popup menu.
If there is any way to do that, please let me know. The most stupid solution in my brain is to mimic the manual operation using applescript. But I don't know how to select the item called 'Show in Finder' in a menu.
Regards,
wyudong