I think this is a good idea; there are various ways that could be implemented.
e.g. we could create a blob with the file, and have an additional method to the
filepicker api that would returns that blob (so webapps upon starting could
call a getParameter() method or something like that).
As Ben said, what you can do right now if you simply want "documents" on your
desktop (vs opening existing file types) for your webapp, you should be able
to create shortcuts using the desktop api (then it's just a matter for
your webapp
to create shortcuts with url containing the document id so that it can
present it to the user).
--
Nicolas Roard
Google UK London
File associations are idea we have discussed briefly. A couple thoughts:
* Rather than prompting the user on unhandled file types, I think
applications would want to register for file associations. Two
reasons:
- Apps may want to register for already-handled types.
- Apps that don't register for a type likely won't be able to do
anything useful with it (if the user creates the file association).
* System file associations would probably need a permission prompt,
similar to desktop shortcuts.
* We would need to figure out how to expose the file data to the web app.
A handler like onFileOpen(blob) makes the most sense to me right now.
I've also heard talk of posting to a URL, but getting the protocol right
sounds tricky.