At 03.31 1998.05.04, Peter Hartmann wrote: >[1] >The following code snippet intends to make Netscape download a file to disk >(I know I could have MacPerl handle this job all on its own, but since it >is not threaded, I have to wait until a download completes, before I can >move to the next, which can be pretty time consuming - or am I wrong?), but >it doesn't work (although it compiles), obviously to my handling of the fss. Try getting it to work in AppleScript first, and use the Capture AE control panel to capture the events you are sending, which should show you how to construct the proper event. >Thanks to InsideMac, Chris' invaluable AE Tutorial [Thanks Chris!] and >other sample code I figured out quite a couple of things on my own, but I >am stuck on this. Could anyone point me into the right direction? Is there >a way to pass a simple file path of type TEXT instead of a fss? Often, a filespec will be passed in something like this: "'----':obj {want:type(file), from:'null'(), form:enum(name), seld:TEXT(\@)", $path # i think this is right ... Or: "'----':alis(\@\@)", NewAliasMinimal($path) Capture AE should help a lot. I think the first one (the object form) should work, though. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ MacPerl: Power and Ease (ISBN 1881957322), http://www.ptf.com/macperl/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch