How to add an application specific service contextual menu for an automator created service

automatormenu barservicessoftwaresoftware-recommendation

I have just created a service for my text editor.
I would like to be able to add a services item in the text editor contextual menu when right clicking.
Can this be done?

Best Answer

Depending on your service restrict it to your text editor while creating the service in Automator and save it to ~/Library/Services/.

Example:

enter image description here

After selecting some text, the context menu offers the service "fiona-babbles":

enter image description here