File Associations & Auto-Open with OS X

Peter Reid preid at reidit.co.uk
Wed May 11 13:02:11 EDT 2005


Hi Thierry

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

With best regards

Peter

>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
>
>Regards,
>Thierry

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


More information about the Use-livecode mailing list