View Single Post
Old 12-31-2023, 02:42 PM   #1212
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,212
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by shinykari View Post
Is there a way to update a column only if the current value is blank? I would like to set the "kobo_read_date" to the current date, but only if the "kobo_read_date" is currently empty.
Yes, you can do this directly in calibre without using Action Chains:
  1. Filter out the books that have blank value using the following search:
    Code:
    #kobo_read_date:false
  2. Select all the books resulting from the previous search, and then use calibre metadata edit to set the kobo_read_date to current date by pressing the "today" button next to the kobo_read_date cell in the bulk metadata edit dialog.

If you still want to do this using the plugin, you use the search above as the scope for a single field edit action that sets the date to current time.
capink is offline   Reply With Quote