Drag and Drop from Desktop
Rob Cozens
rcozens at pon.net
Fri Nov 12 12:33:46 EST 2004
Hi Jan,
>Since Apple released System 7, AppleEvents have been
>used for these purposes : the Finder will launch the
>application, and send an appleEvent of type "odoc" and
>class "aevt" -- so you can use that information within
>Revolution.
I built a standalone including an appleEvent handler, and
* The standalone will only respond to a drop when the file dropped is
a Rev stack: dropping any other file/folder on the icon just causes
the Finder to reposition the item dragged.
* If I drop a Rev stack on the icon, that stack is opened, and I get
NO appleEvents reported by the standalone until I press cmd-Q.
* The $1 parameter is empty.
BTW, I've been dragging my feet about upgrading, and am running Ver
2.1.2 on OSX. Might some of my problems go away in a more recent
release?
>Other applications that I know that support
>drag'n'drop from the desktop, will open a screen that
>says what the application will do -- and then let the
>user drop a file onto that window in case the
>application was just double-clicked.
If double-clicked, reVise will display a message saying it operates
in d&d mode only, then quit.
--
Rob Cozens, Staff Conservator
Mendonoma Marine Life Conservancy
"From [Newfoundland] Dr. [Ed] Mayo's perspective the worst part is an
ominous shift in demand: ''I do far more vasectomies now than
deliveries," he says. ''Far more.'' Whereas he used to receive
requests to perform male sterilization from men ''over forty with
four kids,'' since the fishing moratorium he'd started getting
requests from couples with only two kids... ''Now I'm getting single
guys in their thirties wanting a vasectomy. People don't want to
have children. There's this feeling of hopelessness.''"
-- Ocean's End
More information about the use-livecode
mailing list