Re: drapplet?
Re: drapplet?
- Subject: Re: drapplet?
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 25 Jan 2017 23:01:22 +0000
- Thread-topic: drapplet?
Yes. Applets have worked that way from the very start. If they have an open handler they are dropplets but will also respond to a double-click.
From: applescript-users-bounces+ed.stockly=email@hidden <applescript-users-bounces+ed.stockly=email@hidden> on behalf
of Mitchell L Model <email@hidden>
Sent: Wednesday, January 25, 2017 2:51:46 PM
To: AppleScript Users List
Subject: drapplet?
I rarely make script apps, so this may be a really naive question. Is it widely (at all?) recognized that you can have a script app that can be run either by double-clicking or by dragging files over it? A "drapplet"? As follows:
-- Demonstration of a "drapplet":
-- a script that can be run either by double-clicking
-- or by dragging files over its icon
display alert "Double-clicked or run from editor"
-- I don't know how to tell the difference
set
oldDelimiters to
AppleScript's text item delimiters
set
AppleScript's text item delimiters to {return &
return}
display alert "Files dropped:" &
return &
return & (args as
text)
set
AppleScript's text item delimiters to
oldDelimiters
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >drapplet? (From: Mitchell L Model <email@hidden>) |