Default Folder X allows you to include separator lines in its menus to group together files, but these also appear in its scripting output as DXMenuSeparator. These appear as paths in the LaunchBar action's output, as if referring to a file called DXMenuSeparator in the action’s Scripts folder, and raise an error when accessed.
Adding a filter after the map in getDFXData.scpt is enough to remove these:
diff --git a/original.js b/revised.js
index bcfa6e8..44627ed 100644
--- a/original.js
+++ b/revised.js
@@ -23,5 +23,7 @@ function run(argument) {
function processPaths(paths) {
return paths.map(function(obj) {
return {path: obj.toString()}
+ }).filter(function(obj) {
+ return !obj.path.includes("DXMenuSeparator")
});
}
Default Folder X allows you to include separator lines in its menus to group together files, but these also appear in its scripting output as
DXMenuSeparator. These appear as paths in the LaunchBar action's output, as if referring to a file calledDXMenuSeparatorin the action’s Scripts folder, and raise an error when accessed.Adding a filter after the map in
getDFXData.scptis enough to remove these: