![]() |
#31 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
This seems to be the case for any command. I tried running "mspaint.exe {inputfile}", which theoretically should open MS Paint and throw an error, but nothing happens. Same with "type {inputfile}", which should just return the text contents.
|
![]() |
![]() |
![]() |
#32 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
I uploaded a new version that is more verbose with happens when the command is run. Run the editor from the terminal and post the output here.
Note that I am on a Linux machine and cannot test what happens on Windows, so I am limited on what I can do. Worst case scenario I will make this action Linux only as it is running fine for me. Last edited by capink; 09-07-2023 at 04:30 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
Command error: Return code is 1 when running command for file: styles/styles.css
stderr: The filename, directory name, or volume label syntax is incorrect. Any command run throws this error. |
![]() |
![]() |
![]() |
#34 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Try the version attached in this post and see whether it makes any difference.
Last edited by capink; 09-08-2023 at 09:25 PM. Reason: moved zip to first post |
![]() |
![]() |
![]() |
#35 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
Okay, native Windows commands (type) seem to work, but running applications (clean-css) don't, throwing a "stderr: b"'cleancss' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"" error.
On another note, in my quest to have a command that renames html files to xhtml (type {inputfile} > {outputfile}), if I don't arrange the ebook into folders first, the text files are removed from the spine. |
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
You might need to use the full path of the executable e.g "C:\\Program Files\\CleanCss\\CleanCss.exe", also make sure to double quote if the path contains spaces. Not going to go there right now as this is not the intended use for this action. I actually have a plan for a mass renamer plugin that mimics Thunar File Manager renamer, and should integrate with Editor Chains, but it is not coming soon as I don't have the time right now. |
|
![]() |
![]() |
![]() |
#37 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2023
Device: Android
|
Alright got it to work. Apparently calibre does not like things that are in your PATH environment variable. Once I packaged clean-css-cli as an exe and pointed calibre to it, it worked fine.
|
![]() |
![]() |
![]() |
#38 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Strange, as the version I gave you to test (which is now moved to the first post), does clean the PATH variable before passing the command.
|
![]() |
![]() |
![]() |
#39 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.9.0
A new version with modifications to the "Run Command". These changes break backward compatibility with chains created with older version of the "Run Command" action. The configuration now forces you to select the binary from the filesystem using a file picker, and supply the arguments on a separate box. This is done to solve problems reported by people using the action on Windows. See screenshot below.
Last edited by capink; 09-09-2023 at 01:06 AM. |
![]() |
![]() |
![]() |
#40 |
Enthusiast
![]() Posts: 30
Karma: 18
Join Date: Jun 2017
Device: Kindle Fire
|
![]()
When using the Transform HTML action, regardless of what I set (current file, selected files, etc.), it will apply the transform to all HTML files.
|
![]() |
![]() |
![]() |
#41 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 0.9.2
|
![]() |
![]() |
![]() |
#42 |
Enthusiast
![]() Posts: 30
Karma: 18
Join Date: Jun 2017
Device: Kindle Fire
|
![]()
Confirmed issue is resolved!
This forced me to spend some time learning the tag actions built into the plugin and they are amazing! I have a lot of saved rules in the calibre transforms, but I'm definitely going to start converting them over to the action chains version, they're just so flexible! The action chains plugins are amazing by the way. They literally save me hours per book. So many manual steps and actions are now automated. ![]() |
![]() |
![]() |
![]() |
#43 |
Enthusiast
![]() Posts: 30
Karma: 18
Join Date: Jun 2017
Device: Kindle Fire
|
Is there an equivalent action to the Transform HTML option of "Remove Tag Only"? Where it removes the tag, but leaves the content intact.
For example Content: <p><strong>Chapter 1</strong></p> Match <strong> with a parent of <p>, and remove only the strong tag, leaving: <p>Chapter 1</p> So far it's the only thing I haven't found a way to replicate with Tag Actions. |
![]() |
![]() |
![]() |
#44 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
![]() Quote:
|
||
![]() |
![]() |
![]() |
#45 |
Connoisseur
![]() Posts: 88
Karma: 18
Join Date: Jun 2020
Device: Boox Note Air3, don't use my kindle anymore
|
How do I show the UI for Editor Chains? I have both Editor Chains and Action Chains installed on the latest 7.0 Calibre Windows version.
but I can't find a GUI for editor chains.. There is nothing inside the Toolbar menu and also nothing inside the Favourites plugin -> Customize menu list I have uninstalled and reinstalled the Editor Chains plugin. Don't want to uninstall Action Chains as I don't want to lose my existing chains.. Thanks! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] EpubCheck | Doitsu | Plugins | 163 | 07-23-2024 08:07 AM |
[Editor Plugin] LanguageTool | Doitsu | Plugins | 17 | 04-20-2024 02:21 PM |
[Editor Plugin] - Enabling 'Customize plugin' dialog directly from the Editor | thiago.eec | Development | 7 | 01-09-2019 08:05 PM |
Sample Plugin for the Editor | DiapDealer | Editor | 77 | 12-10-2014 07:16 AM |
Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 10:23 PM |