At 10.58 -0500 1999.01.07, Kevin Johnson wrote: >>At 09.48 -0500 1999.01.07, Kevin Johnson wrote: >>>I use FSpFileCopy (from Mac::MoreFiles), FSpDelete (from Mac::Files) and >>>Net::FTP (as Paul mentioned) for the ftp stuff instead of applescripting >>>Fetch. The only applescript I need to use is to rename the file before ftp >>>if necessary. Is there a toolbox function for that, anyone? >> >>First, I see little reason to use FSpFileCopy over File::Copy::copy, or >>FSpDelete over unlink(). And why not use rename() to rename()? > >Will File::Copy::copy and unlink() work across volumes? I used the >applescript instead of rename() because of this. File::Copy::copy has no problem working across volumes, and unlink() has no notion of across volumes. rename() cannot move across volumes; however, File::Copy::move _can_ do that. It does what you would do: copy and then unlink, but it does it for you. #!perl -w use File::Copy; move('HD1:Desktop Folder:Capture File 3', 'HD2:Desktop Folder:Capture File 3'); -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %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