The following script (and its move to bottom analog) used to work great for moving a task to the top (bottom) of a project. Now it still works, but the view doesn’t update to show the moved task…any ideas?
(() => {
var action = new PlugIn.Action(function(selection) {
selection.tasks.forEach(function(task) {
moveTasks([task], task.containingProject == null ? inbox.beginning : task.containingProject.beginning)
})
});
action.validate = function(selection) {
return (selection.tasks.length > 0)
};
return action;
})();