HackPlan / quark-shell-mac

Quark Shell for Mac helps web developers to create native-like Mac menubar app using HTML and JavaScript without writing any native code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: File Read/Write

acketon opened this issue · comments

It would be nice to be able to read/write files. The HTML5 File API works but as far as I know requires user interaction/selection of files. Is there a way to disable that security requirement or implement an Objective-C to JS function?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7512386-feature-request-file-read-write?utm_campaign=plugin&utm_content=tracker%2F899498&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F899498&utm_medium=issues&utm_source=github).

The problem is sandbox restricts random file access. Under sandbox environment, even normal Objective-C app can’t read/write arbitrary files. I’m able to provide such API for non-sandbox environment, but I don’t have good reasons to do that. I think an open dialog is a good protection to end users.