The background to this question is that I am creating an application to run on my Apple MAc and for my own use that copies image files from a camera memory card to a selected folder on a hard drive. The app is not trying to replace the Finder but presents the image files grouped by shoot date to allow me to add key words to the file name along with performing a rename of each of the files. There may be thousands of images on the card plus xmp files.
The dictionary suggests that there are two methods of conducting a rename : revCopyFile or Put URL into URL_B. It also states that the revCopyFile has certain advantages one being :
The implication is that the URL command reads the whole file into memory before writing it out again. The image files I am working with are no larger that 25 Mbytes and there are few anywhere over say 100 Mbyte so reading the whole file into memory is not a great problem except it seems to slow the copy process down. My guess is that revCopyFile copies small bite size portions which speeds the process up. I wonder if any of you have had similar results or any comments?It also does not require reading the entire file into memory, so even extremely large files can be copied.
So its seems like a win for revCopyFile. However, there is an issue: when each file copy operation completes the OS makes a "dedah" sound. This means that the computer gets very noisy as thousands of files are copied. The sound can be switched off by going to the System Prefs dialog and un-checking the "Play user interface sound effects". I would like to do this for the period that the copy op is running and wonder if anyone can direct me to either a Livecode command or a Shell command that does this?