I make an application-player for chrome. I want that after changing the track, its name is recorded in a file (erasing the name of the previous one). I can't write to the file. I tried this:
chrome.fileSystem.chooseEntry({type: 'saveFile', suggestedName: 'song.txt'}, function(writableFileEntry) { writableFileEntry.createWriter(function(writer) { writer.write(new Blob([songs[i].title], {type: 'text/plain'})); }, errorHandler); });
but it just opens the save to file dialog, but it needs to be done without user intervention