script stopped working all of a sudden: File/path/to/folder was not fo

Hi there

I did not change anything in my computer and all of a sudden this script stopped working.

now I get: File/path/to/folder was not found!

anybody has an idea as to why?

tell application "Microsoft Outlook"
	set selectedMsg to (current messages)
	set selectedMsg to item 1 of result
	set msgAttachment to attachments of selectedMsg
	set msgAttachment to result's item 1
	
	set attachmentName to name of msgAttachment
	set attachmentFile to ((path to desktop) & attachmentName) as text
	
	save msgAttachment in attachmentFile
end tell

delay 3

--

set submitfolder to "OS E:Users:e:Desktop:" as alias
set collectionfolder to "/Volumes/Data E/Consulting F&M/Telephone Switch Record" as alias
tell application "Finder" to move (every item whose name contains ("CSV")) to collectionfolder

delay 2
--

tell application "Finder" to move (every item whose name contains ("CSV")) to trash

--

I have no clue how to fix it, tried many things, path to folder is still OK, folder is still there, etc.

any help appreciated.

I doubt that the instruction :

set collectionfolder to "/Volumes/Data E/Consulting F&M/Telephone Switch Record" as alias

ever worked.

Here such one returns logically the file xxxx was not found error -43.

I guess that you would get better result coding :

set collectionfolder to (posix file "/Volumes/Data E/Consulting F&M/Telephone Switch Record") as alias

Yvan KOENIG running High Sierra 10.13.4 in French (VALLAURIS, France) lundi 28 mai 2018 09:37:27