Saving variables as a text file

So I have heard from several people that it is possible to save articulate variables as text files on to the user's computers using javascript. I've tried several times to make it work, but i cant seem to get it right, even when duplicating other people's work.

 

Does anyone see something I'm doing wrong? I'd really like to get this to work.

1 Reply