06-07-2021, 06:35 AM | #586 |
Custom User Title
Posts: 8,614
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Can a condition be used to grey out a chain when there is currently another job running?
|
06-07-2021, 07:37 AM | #587 |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Another job as in calibre job? Or do you mean another chain or event? If you mean calibre job, you can try the following template function (copy past into module editor):
Code:
from calibre_plugins.action_chains.templates import TemplateFunction class IsJobsRunning(TemplateFunction): name = 'is_jobs_running' arg_count = 0 def evaluate(self, formatter, kwargs, mi, locals): gui = self.plugin_action.gui jobs = [job.id for job in gui.job_manager.unfinished_jobs()] if jobs: return 1 else: return '' Last edited by capink; 06-07-2021 at 09:33 AM. Reason: Add missing import |
06-07-2021, 08:16 AM | #588 |
Custom User Title
Posts: 8,614
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yes, Calibre job. Specifically I want to prevent accidentally running my "update fanfic on device" while it's still uploading the files to the device. I'll try that thank you.
|
06-27-2021, 12:24 PM | #589 |
Custom User Title
Posts: 8,614
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Is there any known way for AC to apply title casing to a column? I figure it might be possible with a template in single-field edit but I have no idea where to start with that so hoping there's an easier way.
|
06-27-2021, 01:16 PM | #590 |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Edit: See the post below.
Last edited by capink; 06-27-2021 at 02:10 PM. |
06-27-2021, 01:37 PM | #591 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
In single field edit you can use the template
Code:
program: titlecase($field) |
06-27-2021, 02:39 PM | #592 |
Custom User Title
Posts: 8,614
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thank you.
|
07-06-2021, 12:32 PM | #593 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Action Chains 1.9.1
Search and replace does not work! Validation error: Action (Search And Replace) is not currently available |
07-06-2021, 01:37 PM | #594 |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
|
07-06-2021, 09:26 PM | #595 |
Custom User Title
Posts: 8,614
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Something I find interesting is that the error says "Search And Replace" while in my AC, the menu says "Search and Replace." Is it case-sensitive?
|
07-07-2021, 02:25 AM | #596 | |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Quote:
Thanks a lot! Although, for the moment, I stick with version 1.9 since I would have to define, again, almost a hundred search and replace. |
|
07-07-2021, 03:45 AM | #597 |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
I will post a version that will automatically convert them.
|
07-07-2021, 04:39 AM | #598 |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
reserved.
Last edited by capink; 07-07-2021 at 12:13 PM. |
07-07-2021, 12:08 PM | #599 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
|
07-07-2021, 02:38 PM | #600 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Jul 2021
Device: Kindle Paperwhite, Kobo Libra 2
|
Configuring Calibre actions
Hello,
I am trying to perform a set of actions after filling/correcting the content of my custom colums and before sending the ebooks to my Kindle. I managed to set some Calibre actions but I would like to skip the interfaces as I am always selecting the same options. The actions I want to do are:
Should I use something else than Calibre actions to select directly the parameters? If that's the case, what do I need? Thank you! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 82 | 04-02-2024 10:56 AM |
Action Chains Resources | capink | Plugins | 54 | 01-29-2024 11:24 PM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |