Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add items to the Finder context menu in Mac OS X?

I'm in the process of porting a Windows application to OS X (we wrote it in Java so most of the code is portable), but what I'm currently unsure of is how to add context menu items in the Finder window when the user right clicks on an item (i.e. I wish to add some items to the the menu that has "Open" "Open with" , "Get Info", etc... when the user right clicks).

Most of the articles I've found deal specifically with Windows (I've searched for "context menus" and "shell extension", but I believe I may be searching the wrong terms), so I'm curious as to how to go about adding this in Mac or what literature I should be reading.

like image 968
mystro Avatar asked Jun 03 '10 08:06

mystro


People also ask

How do you add a context menu on a Mac?

Control-click on a Mac is similar to right-click on a Windows computer—it's how you open shortcut (or contextual) menus on a Mac. Control-click: Press and hold the Control key while you click an item. For example, Control-click an icon, a window, the toolbar, the desktop, or another item.

How do I customize the Finder toolbar on my Mac?

Change what's in the toolbar: Choose View > Customize Toolbar. You can drag items into and out of the toolbar, add a space between items, and choose whether to show text with the icons. Rearrange the items in the toolbar: Press and hold the Command key, then drag an item to a new location.

How do I add items to my Mac Finder sidebar?

Add a file to the sidebar: Press and hold the Command key, then drag the file to the Favorites section. If you don't see the Favorites section, choose Finder > Preferences > Sidebar, then select at least one item in the Favorites section.


1 Answers

You may want to take a look at using Services. The Finder appends applicable Services to the end of its contextual menu and, depending on your needs, just fit the bill.

like image 61
Casey Fleser Avatar answered Oct 04 '22 08:10

Casey Fleser