Nota: the csv files have a default icon set by macOS, and I added a custom one for the test…
// This MessageBox is to be sure the FileType “exists”…
MessageBox "csvType.Name: " + EndOfLine + EndOfLine + csvType.Name
// Then, some lines below:
If csvType.Icon <> Nil Then