Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RhetTbull opened this issue Oct 17, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@RhetTbull
Copy link
Owner

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 RhetTbull added the enhancement New feature or request label Oct 17, 2022
@RhetTbull
Copy link
Owner Author

RhetTbull commented Oct 17, 2022

A service might be the easiest.

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

RhetTbull added a commit that referenced this issue Oct 22, 2022
Added Services menu action for detecting text in image files #5
@RhetTbull
Copy link
Owner Author

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
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant