I am useless at AppleSCript / Automator, so Newbie apologises first ...
I am trying to move the 5 most recently created folders and their full contents from one folder to another.
He's what I have so far and I get the error 'Finder got an error: AppleEvent handler failed.'
tell application "Finder"
set sourceFolder to "/Users/admin/Desktop/TEST/IN"
get contents of sourceFolder
set targetFolder to "/Users/admin/Desktop/TEST/OUT"
move every item of sourceFolder to targetFolder
end tell
I am trying to move the 5 most recently created folders and their full contents from one folder to another.
He's what I have so far and I get the error 'Finder got an error: AppleEvent handler failed.'
tell application "Finder"
set sourceFolder to "/Users/admin/Desktop/TEST/IN"
get contents of sourceFolder
set targetFolder to "/Users/admin/Desktop/TEST/OUT"
move every item of sourceFolder to targetFolder
end tell