How to get a list of scripts with hat blocks?