Here’s a quick adaptation of one of my other posts. Not the most efficient but gives you what you want:
(name of it, (id of it, name of it, unique values of parenthesized parts 2 of matches (case insensitive regex "^\s*(download|prefetch|download now|download now as|add prefetch item)\s+.*((((ht|f)tp[s]?)://([[:alpha:]\-\.]+(:[0-9]+)?))[[:space:]/]([^[:space:]]+))") of scripts of actions whose (script type of it = "application/x-Fixlet-Windows-Shell") of it) of fixlets of it) of bes sites whose (external site flag of it)