dragdrop files for a standalone.
Sarah Reichelt
sarahr at genesearch.com.au
Mon Apr 19 23:27:21 EDT 2004
You've got the basic method worked out OK, but I would be very wary of
using "it" as a parameter name in your openfileroutine.
Change the start of the routine to:
on openfileroutine fpath
open file fpath
....
Cheers,
Sarah
On 20 Apr 2004, at 11:07 am, 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