set Scpts to paragraphs of (do shell script "mdfind -onlyin / 'kMDItemContentType == \"com.apple.applescript.script\"'")
tell application "Finder" to set S to files of (entire contents of (path to scripts folder from user domain)) where its name extension is "scpt"
It looks like you're new here. If you want to get involved, click one of these buttons!