appleEvent for dragdrop file on non running app

Meitnik at aol.com Meitnik at aol.com
Tue Apr 20 00:28:23 EDT 2004


Hi all...I want to handle droping a file on standalone to force it to run and 
open the file. my code so far is this:

on appleEvent pClass,pID
   if pClass = "aevt" and pID is in "odoc oapp" then
     request appleEvent data
     if it = "" then exit appleEvent
     openFileRoutine it
   end if
end appleEvent

on openfileroutine fpath
   open file fpath
   read from file fpath until eof
   close file fpath
   put it into data
   --parse the data given from it
end openfileroutine

However, its not working. What am I doing wrong?


More information about the use-livecode mailing list