![]() |
#1 |
Tominator007
![]() Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
|
Command line after conversion
Does anyone know if it would be possible to create a plugin that would execute a command line command OR at least a .bat file after conversion?
I am converting large EPUB files to DOCX files and it takes longer than 30 min to an hour. I would like to setup some sort of notification system to let me know when conversion is done. A command line environment would be ideal since I can work with command lines. For example, would like to trigger a command to send a notification to my phone, or alert sound, or to EventGhost, or custom pop-up window, etc right after conversion is completed. I'm guessing that this would be somewhat easy but don't know how to go about it. Any help would be appreciated. Maybe this already exists but I haven't found it. 1) I'm do not know python 2) for Windows PC environment Thank you |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,608
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Two suggestions,
long shot - try converting to RTF rather than DOCX, might be faster. Maybe you can make use of this ==>> Command Line Interface - ebook-convert. BR |
![]() |
![]() |
![]() |
#3 | |
Tominator007
![]() Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
|
Quote:
But thank you for your quick response. |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre already does popup a system notification on conversion completion. Exactly what form that notification takes depends on your system settings.
|
![]() |
![]() |
![]() |
#5 |
Tominator007
![]() Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
|
Yeah, I have windows 7 so all I have is the system tray popup balloons which I haven't figured how to intercept and redirect.
I guess it isn't possible to do a window shell command from within a plugin upon conversion completion? If it is possible, I might be able to figure it out myself. Just need a nudge in right direction. It's not super important that I can have this done, but to make it a bit easier. This way I wouldn't have to check every 10 min to see if long conversions are done. Thank you for the reply. Btw, wonderful piece of software. |
![]() |
![]() |
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not from a plugin, but you can do it easily enough with a trivial line patch to the calibre source code. Simply edit the file notify.py and change get_notifier() to return your own custom notifier that can do whatever you want on notifications.
|
![]() |
![]() |
![]() |
#7 |
Tominator007
![]() Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
|
Thanks much! Will give it a go.
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And here is how to run calibre from source: https://manual.calibre-ebook.com/develop.html
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Command Line conversion errors | cptgunther | Conversion | 1 | 05-13-2016 11:21 AM |
Command Line Conversion | loo23 | Conversion | 3 | 04-07-2012 03:33 PM |
Command-line conversion formats | fnardo | Conversion | 1 | 09-01-2011 10:46 PM |
Command line conversion not working | rockeh | Calibre | 1 | 08-24-2010 06:23 PM |
command-line conversion tools in 0.6.0? | WayneD | Calibre | 3 | 06-03-2009 01:30 PM |