Hi everyone,
I’m trying to copy a file from Folder A on my server to Folder B on my server, and rename it in the new location.
The following approach works, but only when the original file is on my local computer.
tell application "Finder"
with timeout of 60 seconds
set _newPath to (duplicate file _file to folder _matrixLocation with replacing)
set _newPath's name to _newMatrix
end timeout
end tell
The error I get is “The variable _New Path is not defined”. I can’t seem to figure out why this is working with local files but not with remote files. Does the Duplicate command not return the new files location when copying to a server?
Thanks!
Matan