It's a script that goes in a toolbar button or menu item. See the Script Buttons section for details on how to use it.
If you're seeing the "methods" error it sounds like the script was saved into the script add-ins folder, which is for more complex scripts that handle events and things like that.