With the Icetips Utilities it is very easy to get the location of the Temp folder and get a temporary file name.
FileName = Folder & ITS.GetTempFilename()
GetTempFilename will give you a temporary filename in the Temp folder.
Lets say that you want to create a subfolder in the Temp folder. Then you need to add a few more lines of code.
Folder = ITS.GetTempFolder() & 'Icetips\Build Automator'
FileName = Folder & '\' & ITS.GetTempFilename() & '.tmp'
GetTempFolder gives you the path to the Temp folder and CreateFolder creates the subfolder(s) for you. CreateFolder can create multiple levels in one go. Note that CreateFolder and CreateDirectory are exactly the same, in fact CreateFolder just calls CreateDirectory, just a different name:)