MACSCRPT Archives

March 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Mime-Version:
1.0 (Apple Message framework v1077)
Content-Type:
text/plain; charset=us-ascii
Date:
Fri, 5 Mar 2010 11:21:11 -0500
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
Mark Lively <[log in to unmask]>
In-Reply-To:
Content-Transfer-Encoding:
quoted-printable
Sender:
Macintosh Scripting Systems <[log in to unmask]>
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