View Single Post
Old 04-13-2023, 06:07 PM   #1077
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,207
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Selection Modifier: Would any of the options select 'initial selection before running chain'?
No. You have to save them by creating a Chain Variables as the first action, with a variable called initial_selection:

Code:
program:
    from_selection('id')
Whenever you need to re-select these books, create a "Search Using Template" action with the following template:

Code:
program:
    globals(initial_selection)
You also have to select the option "Template Output is a list of ids", and tick the checkbox "Select all books resulting from this template"

Notes:
  • You have to ensure that the current library view shows all the books, or at least showing the books you are trying to select, so it is better to insert a selection modifier clearing any previous search.
  • Using this approach you are not restricted to only choosing the books before running the chain. You can save and restore selection during any point in the chain e.g. restore selection before 3rd action and so on.

Last edited by capink; 04-13-2023 at 06:28 PM. Reason: typo in variable name
capink is offline   Reply With Quote