Hi there,
Please can someone point me in the right direction.
If I try and move a single file, using the method below, I get the error ‘No such file or directory’?
set myFile to "theFilename.pdf"
set theSource to "/Volumes/thisVolume/thisFolder/thisSubfolder/Processed/" & myFile
set theTarget to "/Volumes/thisVolume/thisFolder/thisSubfolder/TIDY-UP/"
do shell script "mv " & (quoted form of theSource) & " " & (quoted form of theTarget)
I’ve tried a number of variations including building the ‘mv’ instruction into a variable to try and see what’s happening.
I’m trying to move the file(s) of a folder, on a network drive, to another folder on the same drive.
Thanks in advance.
EDIT: Code edited as per Stefan’s comment re src and theSource