![]() |
#586 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,991
Karma: 75337983
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?
![]() |
![]() |
![]() |
![]() |
#587 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
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 |
![]() |
![]() |
![]() |
#588 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yes, Calibre job.
![]() |
![]() |
![]() |
![]() |
#589 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,991
Karma: 75337983
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.
|
![]() |
![]() |
![]() |
#590 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Edit: See the post below.
Last edited by capink; 06-27-2021 at 02:10 PM. |
![]() |
![]() |
![]() |
#591 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
In single field edit you can use the template
Code:
program: titlecase($field) |
![]() |
![]() |
![]() |
#592 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thank you.
![]() |
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#594 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
|
![]() |
![]() |
![]() |
#595 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,991
Karma: 75337983
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?
|
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#597 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
I will post a version that will automatically convert them.
|
![]() |
![]() |
![]() |
#598 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
reserved.
Last edited by capink; 07-07-2021 at 12:13 PM. |
![]() |
![]() |
![]() |
#599 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
|
![]() |
![]() |
![]() |
#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! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 106 | 06-17-2025 05:36 PM |
Action Chains Resources | capink | Plugins | 77 | 06-16-2025 12:45 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 |