How to stop AppleScript application content files from appearing in "Recents" folders?
The following answer will add a .metadata_never_index file inside the Application folder. This will prevent indexing by Spotlight of the folder hopefully preventing it from appearing in Recents.



Here's the script. Save it to /Library/Scripts/Folder Actions Scripts/:

on adding folder items to theFolder after receiving theNewItems
    --  Called after items have been added to a folder
    --
    --  theFolder is a reference to the modified folder
    --  theNewItems is a list of references to the items added to the folder 
    repeat with myItem in theNewItems
        tell application "Finder"
            if myItem's name extension is "app" then -- make sure its an app
                set myPath to the POSIX path of myItem
                do shell script "touch " &amp; quoted form of (myPath &amp; ".metadata_never_index")
            end if
        end tell
    end repeat

end adding folder items to



Navigate to the folder where you save your Apple Scripts
Right click on that folder and select Services&gt;Folder Actions Setup





Select the script that saved and click Attach
Make sure Enable Folder Actions is checked in the upper left
Test.
Celebrate!