I have written an AppleScript to do a little task in the current folder of Finder. I added it to the Finder toolbar by dragging it while holding CMD-ALT. But when I click it, it opens the AppleScript in the Script Editor instead of executing it.
The AppleScript file has following rights: -rwxr-xr-x@
The owner is the same user which is using it.
Of course, it's my intention to execute the file, not to open it on button click. What do I need to do to execute it?