textinator icon indicating copy to clipboard operation
textinator copied to clipboard

Feature: add app extension so Textinator can be used on existing images

Open RhetTbull opened this issue 3 years ago • 3 comments

An app extension would allow Textinator to be used on existing images using the right-click context menu. Alternatively, Textinator could register a Service for use from Services menu.

RhetTbull avatar Oct 17 '22 13:10 RhetTbull

A service might be the easiest.

        "NSServices": [
            {
                "NSMenuItem": {"default": "Detect text with Textinator"},
                "NSMessage": "detect_text",
                "NSRequiredContext": {"NSTextContent": "FilePath"},
                "NSSendFileTypes": ["public.image"],
            },
        ],

RhetTbull avatar Oct 17 '22 13:10 RhetTbull

I've implemented this as a Services menu so you can right click on one or more images in Finder and select "Services > Detect text with Textinator". Will release once I finish testing.

RhetTbull avatar Oct 22 '22 19:10 RhetTbull

This is working well but notifications do not get triggered when the service provider class runs. I'll need to look into this some more but it may be an issue with RUMPS.

RhetTbull avatar Oct 23 '22 01:10 RhetTbull