Command: SelectEx (extended Select command)

Works perfectly. Why couldn't I think of that myself. :frowning:

Thanks a lot for the fast reaction.

1 Like

In /desktop or file collection๏ผŒโ€œSelectEx FROMCLIPโ€ can not work
Could you fix this problem๏ผŸ

I solved it.
Find
fileParentTrimmed = fileParentTrimmed.rTrim("/")

Add code at line 1605

			if(fileParentTrimmed == "/desktop" || fileParentTrimmed.search(/^coll:\/\//i) != -1) {
				cmd.AddLine('Select EXACT "' + item + '"')
				continue;
			}

Thanks, for posting your solution and sorry for not getting back to you last year! o)

I looked at the code now.. but who wrote this? o) It's kind of hard, it was written in a hurry it seems. I need to rewrite this at some point. The native "Select" command of DO also is more functional now than it was back then, some specific handling can probably be removed, and maybe there are still some bugs to hunt down?!

If you are in "/desktop" I would expect this to work, for some reason it does not.

cmd.AddFile("C:\\Users\\username\\Desktop\\Controller Editor.lnk");
cmd.RunCommand(Select FROMSCRIPT EXACT MAKEVISIBLE)

I tried with DOpus.FSUtil.Resolve() to get around specific handling of "/desktop" or "coll://", since items in there are regular file system items with regular paths, but it did not work out as I expected.

1 Like