[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Invocation of droplets and apple events



Simen.Gaure@math.uio.no (Simen Gaure)
In message <v01530502ad51ddea4ead@[129.240.222.10]> you write:
>Matthias Ulrich Neeracher <neeri@iis.ee.ethz.ch> writes:
>>Simen.Gaure@math.uio.no (Simen Gaure) writes:
>>>Is there a way to make a perl script respond to an 'odoc' event?
>>
>>Just save it as a "Droplet". 
>
>I have no problems getting the script to run.  But how can my script
>access the file associated with the 'odoc' event which is sent to it
>right after the LaunchApplication?

Oh, I see. You're not supposed to send the odoc "right after" the 
LaunchApplication, you have to pass it to LaunchApplication itself.

There is Apple sample code called "LaunchApplicationWithDoc" demonstrating
the technique.

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
   "I'm set free to find a new illusion" -- Velvet Underground