Identify script file types
AppleScript filenames have either the .scpt or .scptd extension. Extensions may be hidden so that only the filename is shown in the Finder, but you can show the extension.
Select the file in the Finder.
Choose File > Get Info.
Click the Name & Extension disclosure triangle to see the extension.