Calling Applescript in an external file

To do it with a snippet, you would have to do indirectly like this (because a snippet can’t reference an AppleScript file directly):

# popclip
name: External AppleScript Handler
icon: Ax
applescript: |
  set myScript to load script file ((path to desktop folder as text) & "TextEditNew.scpt")
  myScript's newDocument("{popclip text}", "{popclip url})

(I got this from macos - How to call a specific subroutine of an AppleScript from another AppleScript? - Ask Different)