set testFolder to "Mac HD:Users:paul:Desktop:testFolder"
tell application "Finder"
delete every file of folder testFolder
set file1 to (make new file at testFolder with properties {name:"file1"}) as alias
set file2 to (make new file at testFolder with properties {name:"file2"}) as alias
set names to {name of file1, name of file2}
-->{"file1", "file2"}
set the name of file1 to "tempName"
set names to {name of file1, name of file2}
--{"tempName", "file2"}
set the name of file2 to "file1"
set names to {name of file1, name of file2}
-->{"file1", "file1"}
set the name of file1 to "file2"
set names to {name of file1, name of file2}
-->{"tempName", "file2"}
say "What?"
end tell