views:

47

answers:

2

I have some screen scraped tabular data that I want to export to a CSV file (currently I am just placing it in the clipboard), is there anyway to do this in Greasemonkey? Any suggestions on where to look for a sample or some documentation on this kind of functionality?

Just to be clear, I don't want to write to the local file system (I know that is impossible in the sandbox), but present a downloadable file - which may also be impossible...

A: 

Unfortunately not. http://wiki.greasespot.net/FAQ#Can_Greasemonkey_be_used_to_open_local_files.3F

Anton
I wasn't wanting to write to a local file, more like create a new file to be downloaded.
Kris Erickson
+1  A: 

Maybe you can't write it to a local CSV, but you might be able to write it to say a Google Spreadsheet?

Ryley
Interesting idea. I will definitely look into this, but may require a lot more work than I am willing to do for this and maybe it would be faster to make an actual Firefox add-on to gain access to the filesystem.
Kris Erickson