How to create an executable file for an AppleScript?
Write your AppleScript in Script Editor.


Choose File → Save and select Application as File Format.




This gives you an .app which will run your AppleScript when opened.