Skip to content

Default Folder X action output includes menu separators #8

Description

@robjwells

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")
 	});
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions