11-01-2022, 06:59 PM | #1 |
Connoisseur
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
|
Automate list and S&R
I'm doing two different S&Rs in my AutomateList.
Only the first one seems to work. In order to search the CSS file, I use "SetBookBrowserToAllCSS". Is that correct? (The S&R works fine in the normal GUI, if I select the CSS dropdown instead of HTML) Below is my automate list and the log. Can anyone tell me what I'm doing wrong? == -automate01.txt SetBookBrowserToAllHTML RunSavedSearchReplaceAll SplitDoc SplitOnSGFSectionMarkers SetBookBrowserToAllCSS RunSavedSearchReplaceAll FixCSS == -log SetBookBrowserToAllHTML running RunSavedSearchReplaceAll SplitDoc running Loaded: SplitDoc Replacements made: 26 Replacements made: 26 SplitOnSGFSectionMarkers running Split completed. You may need to update the Table of Contents. SetBookBrowserToAllCSS running RunSavedSearchReplaceAll FixCSS running Loaded: FixCSS No replacements made No replacements made Automation List Completed == jmurphy |
11-01-2022, 07:18 PM | #2 |
Sigil Developer
Posts: 7,657
Karma: 5433388
Join Date: Nov 2009
Device: many
|
No, the correct place for setting the files to be searched is in the Saved Search dialog itself. In the saved search dialog there is now an extra column (you may have to grow your window to see the Controls column). There you set the control codes for type of search, target set of files, etc.
There is no need to set the files selected in BookBrowser. The saved search itself now handles that (just like the pulldown menu in normal search). |
Advert | |
|
11-01-2022, 07:20 PM | #3 |
Sigil Developer
Posts: 7,657
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Those SetBookBrowserToAll* automation commands are primarily meant to be used just before launching a plugin that requires a specific selection to work.
That said, one of the Saved Search Control targets is Selected CSS Files or Selected Html Files, but setting the target directly in Saved Searches is far easier. Last edited by KevinH; 11-01-2022 at 07:28 PM. |
11-01-2022, 07:26 PM | #4 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Open Saved Searches windows and edit Controls for FixCSS.
Set at least three of them: * Mode (Normal, case Sensitive or RegEx), be sure to set the Target (All CSS Files) and the Direction (Down). EDIT: KevinH outlined details with which I fully agree. |
11-01-2022, 07:46 PM | #5 |
Connoisseur
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
|
hmmm, I'm not sure all of the nuances of ALs are fully documented yet.
And, yes, the saved searches tool totally has a hidden column. Oops. Thanks for the quick replies, that worked! |
Advert | |
|
11-01-2022, 07:54 PM | #6 |
Sigil Developer
Posts: 7,657
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes, we added that new column a few releases back but if your sigil.ini remembers its size and orientation of the old saved search window, the new column ends up hidden until manually grown.
|
11-01-2022, 08:02 PM | #7 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
11-01-2022, 08:13 PM | #8 |
Connoisseur
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
|
|
11-01-2022, 08:54 PM | #9 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Point missed entirely, I guess.
|
11-01-2022, 11:43 PM | #10 |
Connoisseur
Posts: 91
Karma: 1133066
Join Date: Sep 2007
Device: ipaq
|
|
11-02-2022, 07:47 AM | #11 |
A Hairy Wizard
Posts: 3,101
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Lol
I’m thinking it is that it is a small group so it takes awhile to keep things caught up…. More volunteers would help. Also, you don’t only need to document new features… you can help update the guide if things have changed with old features that simply need updated images, etc. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any way to automate Calibre actions? | bob.f | Library Management | 4 | 08-16-2021 08:07 AM |
Automate epub editing? | Montana Harper | Calibre | 2 | 12-27-2016 10:57 PM |
automate on start up | ladykayaker | Kindle Developer's Corner | 2 | 11-14-2013 08:30 AM |
automate stylesheet cleanup ? | cybmole | Sigil | 9 | 01-09-2013 06:42 AM |