Re: about droplets
Re: about droplets
- Subject: Re: about droplets
- From: Kai Edwards <email@hidden>
- Date: Sat, 12 Jan 2002 21:57:33 +0100
>
Date: 12 Jan 2002 12:52:17 -0800
>
To: email@hidden
>
From: Antonio Inojal <email@hidden>
>
Subject: about droplets
>
>
Hey you all, I was just wondering how is it that one goes about doing droplets
>
in OS 9. Looking at a compiled script I saw that it had a little arrow,
>
down...I figured it acted as a droplet. I wanted to know, what is the code
>
necessary to start a droplet or if it is just a file type created at the time
>
of saving the script as a run-only. Well, thanks again to all...I hope to hear
>
from you.
Within the script, insert a handler that goes something like:
on open theItems
--do something with theItems
end open
- where theItems is a variable that will return a list of items (as aliases)
that have been dragged to the droplet.
When you save the script as an application (not necessarily run-only), the
icon will change to indicate that the script includes an open handler. In
other words, the inclusion of an open handler is what turns an applet into a
droplet.
For more info, check out the 'Open Handlers' section on page 305 of the
ASLG.
HTH.
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************