I have a simple script
on run
display dialog "Hello" buttons {"Ok"}
end run
I saved it as application (let's say myapp.app) If I just launch it from finder by double clicking then it works (i.e. shows the dialog box), but I want to use it for opening files.
The problem: For example I have file.xyz, then right-click it to "open with" and choose my.app. In this case my.app doesn't start (no icon at the dock panel, no dialog box shown).