Thanks much - this does, indeed, work and gets around the limitations I was hitting trying to AppleScript
Fetch from the "published" dictionary. The Glue stuff is way cool, and the auto-discovery & packaging of available events is a delight.
I had to mess around with the Fetch application's preferences a bit, to keep it from opening a default connection window upon startup (this seemed to put Fetch into a state where it wouldn't accept the event).
However, now it's working great with your example.
regards,
Scott Maxson
At 08:49 PM 2/18/2004 -0800, you wrote:
Another option is to use an external program to do the work, via Mac::Glue, such as with Interarchy or Fetch:
my $ftp = new Mac::Glue 'Fetch'; $ftp->activate; $ftp->fetch($localdir, url => 'ftp://user:[EMAIL PROTECTED]/path/file');
The same code should work for both programs, as Interarchy borrowed from Fetch. To get this to work with Fetch, just drop Fetch onto the "gluemac" droplet included with MacPerl.
(Password can be handle by Keychain too, so you don't necessarily need to put in here.)
-- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/