I'm trying to create a convenient workflow in my organisation and as a part of that we've created a specialized context menu in explorer for running various scripts and such. Among other things, we use this to run the various tools of PDF-Tools on specific files. We're doing this with keys in the windows registry, without any programming at all. It works great except for one small problem.
A command such as this:
Code: Select all
"C:\Program Files\Tracker Software\PDF Tools\PDFXTools.exe" /RunTool "{CFB28590-2758-4908-9A8825C29932E5F3}" "%1"
Similarily, this command:
Code: Select all
"C:\Program Files\Tracker Software\PDF Tools\PDFXTools.exe" /RunTool "{7C523D21-00C2-405C-9AAABFEEC315A3E2}" "%1"
However, if we use the second command while selecting multiple files, each file will be run by a separate instance of PDF-Tools, which is problematic. I understand that the "right" solution probably is some kind of context menu handler, but I think we'd have to do that in C++, and our skills are quite weak in that area. I think another solution would be if PDF-Tools accepted an argument that made additional instances check for already running instances and send the file there instead. Or perhaps the most convenient thing would be if PDF-tools included some feature for what we're trying to accomplish here, that is custom right click menues?
I'm open for all sorts of advice on this! Think of this being somewhere in between asking for help and offering a suggestion for improvement
Best Regards,
Martin Berg