View Single Post
Old 09-02-2023, 01:26 AM   #1151
hillcountryfare
Member
hillcountryfare began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2023
Device: KPW, Fire Tablet 8
Quote:
Originally Posted by capink View Post
This is an issue with whatever metadata plugin being used at the time. Action Chains cannot do anything about it.


Thank you so much! this got me going in the right direction. I had to modify your code, the new_selection was only storing one book at a time. I also kept getting errors about retrieving data from 'ids', so I changed it to use the custom column I have for ISBN.

Code:
program:
	original_selection = from_selection('id');
	set_globals(original_selection=original_selection);
	new_selection = '';
	for book_id in original_selection:
		isbn = select(book_field(book_id, 'ids'), 'isbn');
		if ! isbn then
			new_selection = list_join(new_selection, book_id, ',')
		fi
	rof;
	new_selection
Will keep trying to figure out a solution to creating a delay with the metadata.
hillcountryfare is offline   Reply With Quote