View Single Post
Old 12-01-2023, 02:07 PM   #1201
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,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Action Chains does not have actions that can read from text files, it also does not have actions correlating to the newly introduced notes functions. What you want to do can be achieved using few python lines, which can be done using Action Chains since it provides a run python code action.

Attached below is a chain that should do what you want. To import it: Action Chains > Add/modify chains > right click table > import > choose the attached zip file. Now you should see a menu entry under Actions Chains for the newly created chain.

Few notes however:
  • This action makes the assumption, based on what you wrote in your post, that the TXT files will be in books that have series index = 9999999.
  • I did not include the delete action in the chain, since it is a destructive action, it is better left to you once you've tested the solution and are satisfied with it. To delete all the old notes, simply type the following search in calibre search:
    Code:
    series_index:=9999999
    Now choose all the books and delete them, or if you only want to delete only the TXT format their is an option in calibre to choose what format you want to delete.
  • Goes without saying that you have to make a backup for your calibre library before proceeding with any of this, until you are sure the solution is satisfactory.
Attached Files
File Type: zip move_notes.zip (730 Bytes, 614 views)
capink is offline   Reply With Quote