From: Daniel A. S. <st...@ma...> - 2003-02-25 15:15:45
|
Vince, On Tuesday, Feb 25, 2003, at 23:44 Australia/Sydney, Vince Darley wrote: > On 25 Feb 2003, Benjamin Riefenstahl wrote: >> Have a look at the attached patch. I have tested the 'odoc' event, >> but not the script event with the alias parameter. If somebody can >> check if this also works, that would be nice. > > I'll try to check that tomorrow turns out there were problems with the 'dosc' handler as well (unrelated to FSpPathFromLocation() ), looks like nobody ever tested this... fixed in the attached patch. With tclAE in another tclsh I can now do % tclAE::send 'WiSH' misc dosc ---- [tclAE::build::TEXT "puts blah"] % tclAE::send 'WiSH' misc dosc ---- [tclAE::build::alis [file join [pwd] test.tcl]] and both work for me > -- in the meantime, two issues which have > been observed in the past: > > (i) does the code work both if the drop happens when Wish is running > *and* > when Wish isn't running? this seems to work for me, but the patch doesn't touch this, so I'm not sure why this wouldn't have worked before. (AFAIK there is no big difference between a drop at startup and a drop when you're already running, the finder simply delays the initial odoc until the event loop is running) > (ii) does the code work with multiple files? yes, this works for me (already worked in the classic mac code, and this is a port of if so that'll work here too, c.f. the AEGetNthPtr() in OdocHandler). this is unrelated to the present patch. Shall I go ahead and check this in? Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |