dragdrop files for a standalone.

Sannyasin Sivakatirswami katir at hindu.org
Tue Apr 20 13:52:07 EDT 2004


Why need apple events? I use something very simple:  in a transparent 
button that covers the whole background. But maybe this doesn't cover 
all scenarios in your context.

on dragEnter
   set the acceptDrop to true
end dragEnter

on dragDrop
   put  dragData["files"] into tFile
   put url ("file:" & tFile) into someVariable
end dragDrop


On Apr 19, 2004, at 3:05 PM, Meitnik at aol.com wrote:

> This is what i figured out with some help on handling files dropped on 
> my
> standalone.
>
> on appleEvent pClass,pID
>      if pClass is "aevt" then
>           if pID is "odoc" then
>           request appleEvent data
>           openFileRoutine it
>           end if
>      end if
> end applevent
>
> on openfileroutine it
>      put it into fpath
>      open file fpath
>      read from file fpath
>      close file fpath
>      [parse the data   given from it]
> end openfileroutine
>
> any improvements or suggestions.? thanks
>
> andrew
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list