I tried making an addon with the following code:
init.js
Code: Select all
app.filesystem.override({
copyFileAsync: function($super, src, dst) {
$super(src, dst);
alert(`copy ${src} to ${dst}`);
// use fileExists and $super to copy the cdg file
}
});
also tried with no alert shown
Code: Select all
app.trackOperation.override({
autoOrganize: function($super, sl, names, isMoving, addToLib, removeEmpty) {
alert(JSON.stringify(names));
$super(sl, names, isMoving, addToLib, removeEmpty);
}
});