MACSCRPT Archives

March 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 5 Mar 2010 11:21:11 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (10 lines)
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.

ATOM RSS1 RSS2