Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write to file? #75

Open
ghost opened this issue Jun 4, 2013 · 2 comments
Open

Write to file? #75

ghost opened this issue Jun 4, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 4, 2013

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
Copy link
Member

jeff-h commented Feb 22, 2014

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 #25

@jeff-h
Copy link
Member

jeff-h commented Feb 26, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant