Create a simple txt file from extendscript. - Adobe Community
: Plain text files are generally safe, but ensure your implementation doesn't allow for directory traversal attacks if you are serving files from a local server directory.
: Convert your content into a Blob and create a temporary URL. Example Snippet : javascript