Hello Sam,
that's a great question. I believe no, the current core should be updated to make them work with CSP (and other async saving implementations).
For now, I've prepared a workaround for you: try this as a separate plugin, it should make saving backups and RSS work with CSP (I think these changes should be added to the core, but we need to test them a bit). Note, however, that the general CSP limitation applies here: for each new file per session, you'll need to pick the path manually, meaning 1 per RSS (some.xml) and 1 per backup (you may want to set different backup filenames during one session, although I don't think that's a frequent scenario).
The plugin below is installed as usual (copy-paste, tag systemConfig, reload) and only amends
saveRss
and saveBackup
to make them try async saving (which CSP implements).
Best regards,
Yakov.
//{{{
saveRss = function(localPath) {
var rssPath = localPath.substr(0, localPath.lastIndexOf(".")) + ".xml";
tw.io.saveFile(rssPath, generateRss(), function(result, details) {
if(result)
displayMessage(config.messages.rssSaved, "file://" + rssPath);
else
alert(config.messages.rssFailed);
});
}
saveBackup = function(localPath, original) {
var backupPath = getBackupPath(localPath);
var reportResult = function(success) {
if(backupSuccess)
displayMessage(config.messages.backupSaved, "file://" + backupPath);
else
alert(config.messages.backupFailed);
};
if(copyFile(backupPath, localPath)) {
reportResult(true);
return;
}
tw.io.saveFile(backupPath, original, reportResult);
}
//}}}