I'm using the following script to copy a file from one folder to
another where it may or may not already exist (Mac MC 2.3.2,
buildnumber 6):
put URL ("binfile:" & origFilePath) into URL ("binfile:" & newFilePath)
I get a copy of the file in the right folder, but it's empty! I
discovered my error and thought it might be of interest to others -
the source path was slightly malformed!
The newFilePath was of the form "/Mac HD/destination/file1.txt"
The problem was the origFilePath which was of the form "/Mac
HD/sourcefile1.txt", i.e. I'd forgotten to insert a "/" between the
path and the file name.
What's interesting is that I got no error messages and it appeared to
work, but produced empty destination copies. Once I'd spotted the
error and corrected the source file path, it worked fine!
Cheers
Peter
--
--------------------------------------------------------
Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.