Saving text generated by script as an html file

Hi

I have designed a script that generates text which I would like to save as an html file called ‘index.html’ on my desktop. Is it possible to do this using TextEdit or some other application?

Thanks

Nick

Hi,

as HTML is actually plain text AppleScript’s read write capabilities would be sufficient.
But of course the source text must be HTML code.

Thanks Stefan. I love a simple solution

Nick