saleguas/context_menu

Call a single function passing selected files list instead of calling one by one

Opened this issue · 1 comments

tloki commented

It would be great to have an option to call a single function while multiple files are selected (and passing a list of all file names in it) instead of calling a function once per every file... Win10 if it matters...

Sure would be nice! But it seems like the current method this package is using won't work for Windows. The best approach seems like to use a Shell Extension as explained in this SO answer.

pywin32 can be used for this, see this example, but looks quite involved. It would be nice if this package could be modified to use that approach and make a nicer interface to it.