问题
I'm trying to port Java application to Mac OS, My program needs to add items to Finder context menu, Is there a way to add items using Java?
Thanks
回答1:
An old question, but for prosperity, I'd like to try to answer this.
The Liferay Nativity (Java) library is a cross-platform way of programatically adding icon overlays and context menus to file browsers, for Mac, Windows and Linux.
On Mac, Liferay Nativity relies on the Objective-C-based 'Finder Sync' framework:
- Finder Sync overview (Mac OSX)
- Finder Sync API Docs
来源:https://stackoverflow.com/questions/3923149/how-do-i-add-items-to-the-finder-context-menu-in-mac-os-x-using-java