File Associations & Auto-Open with OS X

Peter Reid preid at
Wed May 11 13:02:11 EDT 2005

Hi Thierry

Thanks very much for an excellent solution - just the job!

With best regards


>Add the following handler to the main stack script:
>on appleEvent pClass, pID, pSender
>   switch pClass & pID
>   case "aevtodoc"
>     request appleEvent data  -- extract the path of the file to open
>-- put here the code to process the file
>     break
>   default
>     pass appleEvent
>   end switch
>end appleEvent

Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
E-mail: preid at

More information about the Use-livecode mailing list