Since the Find replaceall command returns the number of replacements made, inside Autmate() we could store that count in a variable (something like m_last_replacement count) and create two new search automation commands: one that only run its search if m_last_replacement count > 0 and and one that only runs its search if m_ last_replacement_count == 0.
This would only work with running saved searches. Would that be useful?
|