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, [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