61
Ideas/Suggestions / Re: Insert/Append Script for inserting one page over and over
« Last post by RTT on July 05, 2021, 03:35:16 PM »I don't think Windows has a way to add custom shortcuts to File Explorer, or to shell context menu items.
But using the PDF-ShellTools command line interface, and some Windows tricks, this is doable.
To call the Merge tool, add Merge to the target field
To call a script named "Print Arguments", add RunScript "ScriptName=Print Arguments" to the target field.
Now you just need to select, in the Windows File Explorer, the PDF files you want to process, and press the keyboard shortcut you assigned.
You can repeat the process to create shortcuts to all the other tasks you use often.
But using the PDF-ShellTools command line interface, and some Windows tricks, this is doable.
- Extract the attached .js script to a work folder.
- Open it in a text editor and check if the path to the PDFShellTools.exe is pointing to where you have it on your system. Change accordingly.
- Create a shortcut to CallShellTools.js, i.e. right click the CallShellTools.js file and execute the "create shortcut" option.
- Cut the created shortcut and paste it in a Start Menu folder (How to Open the Start Menu Folder), e.g. in the PDF-ShelTools program group folder, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PDF-ShellTools.
- Open the shortcut properties dialog and edit the "shortcut key" to enter the shortcut you want to use, and add the command line arguments to the "Target" field.
To call the Merge tool, add Merge to the target field
To call a script named "Print Arguments", add RunScript "ScriptName=Print Arguments" to the target field.
Now you just need to select, in the Windows File Explorer, the PDF files you want to process, and press the keyboard shortcut you assigned.
You can repeat the process to create shortcuts to all the other tasks you use often.