appleEvent for dragdrop file on non running app
Klaus Major
klaus at major-k.de
Tue Apr 20 11:09:11 EDT 2004
Hi Meitnik at aol.com:
> 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?
Quick guess:
Is the path in "it" from the appleevent in Mac format?
I mean : (colon) as a separator?
Regards
Klaus Major
klaus at major-k.de
www.major-k.de
More information about the use-livecode
mailing list