12-13-2020, 12:43 PM | #91 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Edit: Although I have taken a look at the Import List plugin, and unfortunately it does not work for me, since I have several csv files that do not use title, and some neither title nor author, (they are based on custom columns). Last edited by jbacelar; 12-13-2020 at 02:09 PM. Reason: Disgusting surprise |
12-13-2020, 05:01 PM | #92 |
Custom User Title
Posts: 9,252
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm not sure if it's worth fixing, but the "spinning cursor in dialog" appears for some of the Kobo Utilities dialogs (Store/Restore Bookmarks, Upload Cover, and Set Reader Font). I've otherwise run into no problems using those actions in a chain.
|
Advert | |
|
12-13-2020, 06:09 PM | #93 | ||
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
Quote:
Last edited by capink; 12-13-2020 at 06:12 PM. |
||
12-13-2020, 06:11 PM | #94 |
Custom User Title
Posts: 9,252
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Ah, either I missed or forgot about that post. Sorry.
|
12-13-2020, 06:14 PM | #95 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
As I said in the edit of the previous post, a possible solution is to present the user with a checkbox to turn it off/on as he sees fit for the particular action.
|
Advert | |
|
12-13-2020, 06:17 PM | #96 |
Custom User Title
Posts: 9,252
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Also, I wonder if it would be possible to make an option to grey out certain chains if the device isn't plugged in. It's a bit of a niche thing though, and there's no harm if I try to run the chain with no device (it just fails).
|
12-14-2020, 07:44 AM | #97 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
The plugin cannot know in advance whether a chain depends on a device being plugged. The only way to do this is by adding checkbox in the chain dialog that would disable the chain when no devices are plugged. I really don't want to clutter the chain dialog with extra options unless absolutely necessary, so will leave it for now.
|
12-14-2020, 07:42 PM | #98 |
Custom User Title
Posts: 9,252
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
12-15-2020, 12:48 AM | #99 | |
Grand Sorcerer
Posts: 6,329
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
12-16-2020, 07:41 AM | #100 |
Guru
Posts: 931
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
I would like to calculate a value and then use it in a action chain.
Specifically, I want to check which of two devices is connected (I know how to do that), and then either search for books with a (device specific) tag along with other search parameters, or pick a specific premade search (depending on which device), and remove the tag, along with other device non-specific actions on the same set of books. If I could branch within the chain, that would make this easy, but it would be easier if I could pick a search or use a calculated constant... Is there a way to do this currently? (or could it be added?) Edit: I think I figured out how to do it (untested yet) by just prefixing the chain with a search that will come up empty on the wrong device and then duplicating the chain for each device. But it would be more elegant if I could use a calculated value. Last edited by compurandom; 12-16-2020 at 08:15 AM. |
12-16-2020, 08:57 AM | #101 | |
Grand Sorcerer
Posts: 11,929
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Last edited by chaley; 12-16-2020 at 09:00 AM. |
|
12-16-2020, 11:52 AM | #102 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
I don't understand what exactly you are trying to achieve, but I will address the question of branching in general. There are two ways to do it:
Edit: Starting with version 0.4.0, action chains introduced a conditions feature that allows the user to run actions based on conditions at runtime. This also allows branching.
On a side note, I thought about giving the users the ability to call other chains through Calibre Actions or through a separate action, and maybe supplementing that with a another flow control action. I dismissed the idea because it can cause problems like circular dependency. You can prevent a chain from directly calling itself, but it can do so indirectly through another chain that might reference it, and this would require a complicated dependency checking before running chains. You can write these action(s) for yourself as custom actions if you want this be a generalized solution, but I think it is opening a can of worms. Last edited by capink; 04-09-2021 at 05:48 PM. |
12-16-2020, 12:12 PM | #103 | |
Custom User Title
Posts: 9,252
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
- It calls ActionChain#2 - But then that calls ActionChain#1 - Which again calls ActionChain#2 - And once again, it calls ActionChain#1... I don't think there's any good way to halt a chain in progress, is there? |
|
12-16-2020, 12:21 PM | #104 |
Wizard
Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
You can cache the names of the chains as they run, and once you detect a chain running for the second time, halt the whole process with an exception. It is just not a good idea to halt a chain midway. The difficult part is checking before the chain runs.
|
12-16-2020, 12:37 PM | #105 |
Custom User Title
Posts: 9,252
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I've accidentally fork bombed my computer while trying to put together a batch file. That was fun.
Last edited by ownedbycats; 12-16-2020 at 12:49 PM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 94 | 07-03-2024 07:26 PM |
Action Chains Resources | capink | Plugins | 65 | 07-01-2024 03:12 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 |