I have a script that loads a Brush group at the start of processing. I want to unload/delete that group on completion. I have the code (via ScriptListener) to perform the delete, but it delete the "current" (actually the currently selected, i.e., highlighted) Brush group. On completion of the processing, the Brush group is apparently (by manual inspection) not selected (highlighted), so the code doesn't delete it, albeit it executes without reporting an error, possibly because there is no selected Brush group to delete - no Brush group is selected (highlighted). ScriptListener does not show any code resulting from a manual selection of a Brush group. There appears to be no way to test whether a particular Brush group is loaded. Consequently, repeated execution of the script results in multiple instances of the Brush group accumulating. Any ideas, please? TIA
... View more