On Sat, 23 Aug 2003 09:31:26 -0500, Greenblatt & Seay wrote:
>At 2:49 PM +0200 2003/08/23, Louis Pouzin wrote:
>>I want to put in a script a test to find out if it is run as a
>>droplet or executed from within MacPerl.
>>All I get with 'caller' is undef.
>>Is there a (better) way ?
>
>For droplets the creator is "MrPL" and the Type is "APPL".
I think he means the same difference as between run() and open() in
Applescript.
And what you can do is check the number of arguments in @ARGV. If it is
zero, the applet must have been doubleclicked. If there are some, these
files had been dropped.
--
Bart.