@Josieb1: If you are running calibre 2.23 or later (an update since last April) then you no longer need the script. Calibre can create the "empty" text files for you. If you are not then I highly recommend that you upgrade.
The process:
- In calibre, search for books with no txt format. The search is
- Select all the books the search found by pushing Ctrl A or whatever your OS normally uses for select all.
- Click the down-arrow on the Add Books toolbar icon. Choose "Add an empty file to selected book records". Choose "Add empty txt". Press OK. Calibre will work for a bit.
- Do the above three steps whenever you add books, or at least whenever you want to send books to CC.
- In CC, ensure that you have selected TXT files as the only desired format. Go to CC's Settings / Formats and folders and ensure that only "txt" is checked. CC is probably already set up this way.
From here on when you send a book to CC it will send an (almost) empty text file and all the metadata. When you connect as a wireless device, the metadata will be updated. I say "almost" because calibre puts the title and the author into the file.