Welcome to the forum, Guest

TOPIC: Add Context Menu Item to Execute External Command

Add Context Menu Item to Execute External Command 7 years 1 month ago #3024

amix

Offline

Fresh Boarder

Posts: 6

Karma: 0

This is for YACReaderLibrary, the server and manager.

It would be nice, to have a context-menu item, that keeps a sub-menu, that we can configure with external commands/scripts, that get the filename (and configured arguments) passed. Maybe the last (optional) argument could be a JSON string, containing all the known meta-data?

On a side-note, this JSON thing also would make any 'Export Metadata' feature redundant.

I would configure such menu-items to run conversion scripts, like:


1. Converting the images to another format (webp) or transform the archive into another format (unrar).
2. Automatically editing meta-data, writing/xsl-transforming ComicInfo.xml, and the like. Creating CSV reports, etc.
3. Have an "Export to Mobile" script (transcoder, see (1)).
4. Send it to 7-Zip Filemanager/WinRAR/WinZIP, etc.
5. Look up the comic on one of the many online-databases with the web-browser or write fetcher scripts for unimplemented sites. Look it (or items in the meta-data) up on Google, Wikipedia, etc.
6. Copy Comics to preset locations (backup to cloud).

Scripts like these (excpet the online scraper) would be rather simple and, as such, doable by most users, who then could publish them in the forums.

The typical template for such a menu-item could look like:

executable.exe <absolute-filename> [any number of arguments] [json=bool]
The administrator has disabled public write access.
Powered by Kunena Forum