On Mar 5, 2010, at 11:15 AM, Bill Steele wrote:

> Is there a way to make an Applescript app so that if you drop a file on it it does its thing, but if you just double-click it displays a dialog and asks you for the info you would have dropped? IOW, "on open" and "on run" in the same app.

Pretty much what you said.  Put an on open and an on run in the same app.

Code outside of functions is assumed to be in a giant virtual on run.

-Mark
Yes, sometimes it is that easy.