It was showing that the idea should work.
Add additional prints, waits, stops and check what this does. It seemed to be working fine for me.
Names Default To Here(1);
temp_text = "aa,bb\!N1,2";
filePath = Save Text File("", temp_text);
Show(File Exists(filePath));
//replace .txt with .csv
csvPath = Substitute(filePath, ".txt", ".csv");
//If old .csv file exists remove before saving
If(File Exists(csvPath),
Delete File(csvPath)
);
//get only csv file name
csvFileName = Word(-1, csvPath, "\/");
c = Rename File(filePath, csvFileName);
Show(File Exists(csvPath));
//Open(csvPath);
-Jarmo