Why do I always feel like I know NOTHING about Applescript!!!
Anyway, here is my script. I’m trying to locate a file with a specific word in it’s name & move it to another folder.
on run
set sourceDirectory to (path to documents folder from user domain as Unicode text)
set destinationDirectory to ((path to documents folder from user domain as Unicode text) & "Destination")
set folderList to list folder sourceDirectory
repeat with fileFind in folderList
if fileFind contains "project" then
move (fileFind as alias) to destinationDirectory
end if
end try
end run
It says the file does not exist! But it states the exact (full) name of the file in the error & I can see the file is in there.