phaibin / MoliView

It's a user feedback project for MoliView
1 stars 0 forks source link

Open With... functionality #40

Closed mcackay closed 1 month ago

mcackay commented 2 months ago

Xee had the option to the current image with another application -- Photoshop. It would be great to have similar functionality.

I wasn't always delighted with Xee's implementation - I couldn't figure out how to consistently manage the list of applications that you could open with ... it recognised on supported file types I think, but that meant configuring it to open a script which did some batch processing/etc wasn't easy to effect.

Ideally MoliView would implement:

phaibin commented 1 month ago

I did some research and yes, you're right. Apple has an API to determine all the applications that can be as editor for a certain URL. That's what Xee and LilyView (another image viewer I've tried) just did. And this list will change a little bit according to the file type.

How about we do this:

mcackay commented 1 month ago

Hi @phaibin -

As you've proposed seems like a good addition.

It would be helpful ... at least for me 😄 ... to be able to:

phaibin commented 1 month ago

I'm a little confused with Automator Quick Action. I think a Quick Action is triggered in Finder and directly forwarded to an Editor, and MoliView won't be involved. Can you give me an example of what you want to do and what MoliView needs to do?

mcackay commented 1 month ago

Yeah, maybe I am misunderstanding what Quick Actions supports.

I have Quick Actions working in finder - but I have to keep using the "L" shortcut to open the local file, then the shortcut key to trigger the Quick Action. I was hoping there was a way to initiate this within MoliView.

Like in MoliView I can see the following at all times.

image

In Safari, when you have text selected (for example), other QuickActions appear:

image

I was thinking that I could create a QuickAction that was MoliView specific, that would take the current image as the argument:

image

But this doesn't seem to work, and I can't find example of any other apps that have Quick Actions that take input in their Service List. But a QuickAction that takes no input is not helpful for my use-case.

Anyways, Not an area I have much experience with. Perhaps this is not possible.

The proposed "Open with..." or "Edit with..." functionality would be helpful in any case. Maybe I can build a stub app which I set as my default, which then gives me a choice of which app or script to subsequently run 😄

phaibin commented 1 month ago

I got what you mean. I need to do some research to find out how to archive this.

mcackay commented 1 month ago

Thanks @phaibin - it's would be nice-to-have type functionality, so just if you get the inkling. A shortcut to open in a preferred editor would be useful to a much larger swath of users.

Really appreciate everything you're doing to evolve MoliView and create a powerful tool.

phaibin commented 1 month ago

Hi, I finally got the "Services" menu to work. It will show the same items as in "Finder". Please test it and feedback.

mcackay commented 1 month ago

Brilliant! Yes, that seems to be working. It's picking up some existing Services I had configured. And the new editor option is working well too.

Thank you! 🎉

phaibin commented 1 month ago

No worries. Actually, your advice is making MoliView better and I learned a lot.😁