Once you know the basics about services, OS X’s underused shortcuts, your next question is inevitably: Where can I find more? You can add—and even create—your own services. Here are four of the best:

Calncservice Mac
CalcService is the service class that has dependency on AddService. Our goal is to test CalcService class methods, so we will mock AddService using Mockito rather than creating its instance. TestNG Mockito mock example. Let’s look at the TestNG test class where we will mock AddService using Mockito.mock method. Oct 04, 2013 Generate Proxy for CalcService. References – Add Service Reference. In the address bar, type the address of the mex endpoint address of CalcService as shown below: Now when you have added reference of the CalcService, now the next thing you need to do is to define an event handler for the events fired for the service. Adding Event Handler. DEVONtechnologies develops DEVONthink, DEVONagent, and other Mac and iOS apps for document and information management and web research. This service calculates the result of a selected formula within all Cocoa-applications (e.g. Textedit, Mail, Stickies, Notes, ProjectBuilder, Fire, OmniWeb or TeXShop) and appends the result to the. Mockito - Spying - Mockito provides option to create spy on real objects. When spy is called, then actual method of real object is called.
1. DevonTechnologies’ WordService
Calservice.net
You can find some third-party services if you look around. DevonTechnologies’ free WordService is actually a bundle of services that allow you to perform actions on selected text. This set of services is for you if you ever find that you need to reformat text copied from an email, remove line breaks, change text in ALL CAPITALS to normal case, or Capitalize Every Word In A Text without having to manually alter your texts.
2. DevonTechnologies’ CalcService
CalcService, also available free from DevonTechnologies, provides calculation functions from within any application that handles services. With this set of services, you can type a formula in a text document and then use one of the services to perform the calculation. Also use the services to either display the result or add it to your document (replacing the formula, or appending the result to the formula). I’m not a math geek, but anything that can take a formula like bs(sin(sqrt(2)))*sign(cos(pi*pi)) and give me an answer (it’s -0.987765945993 if you’re curious) is pretty nifty.
3. MacAutomation’s Finder services
The MacAutomation website offers a number of free services, including some that encode music files and others that work with Apple’s iPhoto, Mail, Safari, Terminal, the OS X Finder, and more. One of my favorites is Disk Item • New Disk Image with Selection, which is part of the site’s Finder Services bundle. This service creates a new disk image file (.dmg) containing the selected Finder items. If you send or archive files in disk images, this service can save a lot of time. The other services included in this bundle are Disk Item • Rename Selected Items and Disk Item • Set Spotlight Comments.
4. Your own custom-made services
Launch Automator, and, in the Choose a Type for Your Document pane, click on Service, then click Choose. At the top of the window, in the menu following Service Receives Selected, choose PDF Files. Next, click on PDFs in the Library column of Automator, then in the second column, click on Extract PDF Text and drag that to the right-hand section of the Automator window.

Press Command-S to save the service, and, in the dialog box that displays, give it a name, such as PDF to Text. Click on Save.
Check to make sure it’s working. Find a PDF file in the Finder, right-click on it, and choose the Services sub-menu from the contextual menu that displays. You should see your service listed there. Also choose Finder -> Services, and check to make sure it shows up in the menu there. You should see it in both places.
Notice that if you select a file that isn’t a PDF, the service won’t show up; that’s because you specified, in the beginning, that the service would only work with PDF files.
Calcservice Review
Senior contributor Kirk McElhearn writes about more than just Macs on his blog Kirkville. Twitter: @mcelhearn Kirk is the author of Take Control of Scrivener 2.





