Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-12-2024, 02:33 AM   #1231
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by capink View Post
Yes. It passes for any option you choose in the path groupbox including "containing folder", covers and templates.
Ah yes, I have just tested. But {inputfile} seems to be enclosed in "" by default. I'd like to access the subfolder and contents too, for example the data folder. If {inputfile} doesn't include the "", then I can just add them easily.
Attached Thumbnails
Click image for larger version

Name:	Containing folder.png
Views:	909
Size:	23.9 KB
ID:	205772  

Last edited by nqk; 01-12-2024 at 02:35 AM.
nqk is offline   Reply With Quote
Old 01-12-2024, 05:39 AM   #1232
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by nqk View Post
Ah yes, I have just tested. But {inputfile} seems to be enclosed in "" by default. I'd like to access the subfolder and contents too, for example the data folder. If {inputfile} doesn't include the "", then I can just add them easily.
It does not work the way you imagine with or without quotes. What you want to do is achieved by using a template with containing_folder() function:
Code:
program:
	containing_folder() & '/data/some file inside.ext'
Note that you won't be able to access more than on file at a time.

Last edited by capink; 01-13-2024 at 01:23 AM.
capink is offline   Reply With Quote
Advert
Old 01-13-2024, 01:50 AM   #1233
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Version 1.19.1

Version 1.19.1 - 11 January 2024
  • Modifications to the "Open With" action.
  • Bump schema version to 1.9

In previous version, Open With action always placed the path to file at the end of the command. With this version, you can use the placeholder {inputfile} to control where it is placed in arg box. {inputfile} passes for whatever option you choose among: format, folder, cover or template.

Note: This version changes how the args box in the Open With action is parsed. In previous versions they were separated by commas, from this version on they should be separated by white space to be exactly how you type them in a command prompt. Older chains should be updated automatically to the new style args.

Last edited by capink; 01-13-2024 at 03:37 AM.
capink is offline   Reply With Quote
Old 01-13-2024, 06:03 PM   #1234
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
My open-with actions upgraded successfully.
ownedbycats is offline   Reply With Quote
Old 01-14-2024, 02:07 AM   #1235
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
My open-with actions upgraded successfully.
capink is offline   Reply With Quote
Advert
Old 01-14-2024, 11:53 PM   #1236
ghoetker
Junior Member
ghoetker began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2018
Device: None
Waiting for user input

Many thanks for the great plugin. Is it possible (or could it be made possible) to pause for user input before continuing to the next step? My use case is that I want to automate

1. Extract ISBN
2. Hit the "Yep, use the ISBN you found" button on the message that pops up.
3. Download Metadata and covers
4. Hit the "Yep, use the info you found" button on the message that pops up.

Unfortunately, I need to do 2 and 4 manually. Not a big deal, expept that the window from 4 appears "in front" of the window for 2, which I can't hit as a result. So, downloading metadata starts before the ISBN is inserted and thus generally doesn't find anything.

So, I'd love a step 2.5 that was "Wait until the button is hit" or even a step 2.5 that was "Wait 15 seconds before continuing (or a new step 2, "Hit the button without user help"). Perhaps you can think of another solution.

Great if possible. Regardless, thank you so much.
ghoetker is offline   Reply With Quote
Old 01-15-2024, 01:03 AM   #1237
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
I am facing a problem when converting books with a preset conversion scenario (search and replace, extras css styles, .... ) per book

1) Using Calibre Actions (Convert). This works exactly the same as I want, but it requires clicking on OK button to confirm.

2) Using Convert Action (of the plugin). This doesn't require clicking any button, but the conversion scenario (input, common, output option) is the same for every book.

I would like to have something between the two, meaning either it doesn't require "clicking on OK button" (as in Method 1) or it bypasses the "common scenario" and use per-book scenario (as in Method 2).
nqk is offline   Reply With Quote
Old 01-15-2024, 01:44 AM   #1238
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ghoetker View Post
Many thanks for the great plugin. Is it possible (or could it be made possible) to pause for user input before continuing to the next step? My use case is that I want to automate

1. Extract ISBN
2. Hit the "Yep, use the ISBN you found" button on the message that pops up.
3. Download Metadata and covers
4. Hit the "Yep, use the info you found" button on the message that pops up.

Unfortunately, I need to do 2 and 4 manually. Not a big deal, expept that the window from 4 appears "in front" of the window for 2, which I can't hit as a result. So, downloading metadata starts before the ISBN is inserted and thus generally doesn't find anything.

So, I'd love a step 2.5 that was "Wait until the button is hit" or even a step 2.5 that was "Wait 15 seconds before continuing (or a new step 2, "Hit the button without user help"). Perhaps you can think of another solution.

Great if possible. Regardless, thank you so much.
That has been discussed multiple time before, and it is not possible, because the plugin cannot the control flow of other calibre actions. So consider these two actions incompatible with Action Chains.

The only solution would be for someone to write Action Chains action that repackages the code of these actions in a way that does what you are asking for. I am personally not interested in this, as I don't use these actions. But the plugin does provide the ability for anyone who wants to write a custom action to do so.
capink is offline   Reply With Quote
Old 01-15-2024, 01:45 AM   #1239
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by nqk View Post
I am facing a problem when converting books with a preset conversion scenario (search and replace, extras css styles, .... ) per book

1) Using Calibre Actions (Convert). This works exactly the same as I want, but it requires clicking on OK button to confirm.

2) Using Convert Action (of the plugin). This doesn't require clicking any button, but the conversion scenario (input, common, output option) is the same for every book.

I would like to have something between the two, meaning either it doesn't require "clicking on OK button" (as in Method 1) or it bypasses the "common scenario" and use per-book scenario (as in Method 2).
Use as much convert actions as you want, and use scopes to control which actions are called for which books.
capink is offline   Reply With Quote
Old 01-19-2024, 12:34 AM   #1240
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Using my 'Search with Agent Ransack' option with multiple selections fails since the latest update. (I only tested a single book before.) I get an error from Ransack about ';' and the paths of additional books being invalid command-line parameters.
Attached Thumbnails
Click image for larger version

Name:	2024-01-19 01_33_53-Open With.png
Views:	874
Size:	18.7 KB
ID:	205877  
ownedbycats is offline   Reply With Quote
Old 01-19-2024, 01:10 AM   #1241
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Tick the checkbox "Execute command through shell", and will make multiple files execute the same way it was done before.
capink is offline   Reply With Quote
Old 01-19-2024, 02:51 AM   #1242
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
That fixed it. Thanks.
ownedbycats is offline   Reply With Quote
Old 01-19-2024, 08:43 AM   #1243
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
For people on Windows OS who tried the plugin after modifications to Open With action, I am interested to know if shell window opens and closes when you run the action.
capink is offline   Reply With Quote
Old 01-19-2024, 11:47 AM   #1244
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
I dont tick that box, it works, nothing pops up

Sent from my Pixel 7 using Tapatalk
nqk is offline   Reply With Quote
Old 01-19-2024, 01:06 PM   #1245
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I didn't see any shell window come up.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:07 PM.


MobileRead.com is a privately owned, operated and funded community.