Copying a file from A to B - not working
    Scott Rossi 
    scott at tactilemedia.com
       
    Wed Dec 31 15:29:09 EST 2003
    
    
  
On 12/31/03 3:21 PM, "Karl Becker" <karl at karlbecker.com> wrote:
>> But doesn't 2.4.3 support "put URL"?  If so, you might want to try
>> using this method instead of read and write.
>> 
>>   put url ("binfile:" & tSourcePath) into url ("binfile:" & tDestPath)
> 
> Aha, I believe it does.  I'll look into playing with that, too.
This is less scripting than read/write and accomplishes the same task.
> One question about a line of script, though:
> 
>   put "_copy" before char -4 of tDestPath
> 
> What's character -4 of that path?  if the path is:
> 
> "/MyHD/Folder/file.doc"
> 
> then will character -4 be the ".", so we'll have
> "/MyHD/Folder/file_copy.doc"
> in the destination?
Yes.  It's not foolproof, (if a file has a 2 or 4 character suffix, the name
will get messed up) but I added it to avoid overwriting the original file.
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
    
    
More information about the metacard
mailing list