MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

Write to file? #75

Open ghost opened 11 years ago

ghost commented 11 years ago

Is there any chance we can see the possibility of writing files any time soon? I've seen one app use a shell script to do the file writing part but feels rather complicated...

jeff-h commented 10 years ago

May I ask which app it was that uses shell scripts to write files?

Also, there's code already written for files, but it still needs to be committed. See https://github.com/maccman/macgap/pull/25

jeff-h commented 10 years ago

As I've mentioned on a couple of other issues here, the Nodelike project (see https://github.com/node-app/Nodelike) provides a node.js-compatible API to web views. We've successfully combined Nodelike with MacGap, meaning javascript in MacGap can now have access to both the usual MacGap API as well as the node.js API.

See: https://github.com/node-app/macgap for a pre-combined package of MacGap plus Nodelike https://github.com/node-app/Nodelike/wiki/How-to-integrate-Nodelike-with-MacGap

This means you can now do all kinds of things with the filesystem. Check out node's FS commands — you now have access to all of them.