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, [EMAIL PROTECTED] 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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to