Scripts in search mode?
Is it possible to implement scripts while in search mode?
Yes, but be aware that being in search mode will affect how your script functions in many ways.
I routinely use scripts that enter find mode, use set field to specify criteria and then perform the find, as one example of scripts functioning while in find mode: Scripted Find Examples
Retrieving data ...