That's the ticket!!! Thanks... I'll be using URL for ftp'ing files to the server too... sqb >Hi Stephen, > >try this: > >function writeToFile theBlock > global targetFile > set the fileType to "MSIETEXT" > put theBlock into url("file:" & targetfile) >end writeToFile >