I am trying to create a new button that will help me navigate to a specific folder on my network; it should ask me (e.g. dlgString) for a (part of a) name (in this case a band name) and then should see whether there is a single match in a certain predefined folder (e.g. m:\Music). If there is not a unique one, it should show (i.e. Filter) the possibilities.
So, say I typed "Le" it would not find a unique Folder in m:\Music starting with this, so it would open the m:\Music folder and filter, thereby only showing me "Led Zeppelin" and "Lenny Kravitz".
However, had I typed "Led", it would only find the "Led Zeppelin" folder and would show that folder in the lister; i.e. automatically enter the only possible match.
I've been checking out the help and the Rename scripting option, but I think that won't lead me to a good solution. I can filter perhaps (although, how do I limit a Filter to folder starting with the filter?) but I cannot check how many results that gave me (can I?). Same goes for the Select approach (Select all, and If there's only one, enter it).
Can this be done from within DOpus, or will I need to resort to external scripts? Any ideas? Thanks!
I am trying to create a new button that will help me navigate to a specific folder on my network; it should ask me (e.g. dlgString) for a (part of a) name (in this case a band name) and then should see whether there is a single match in a certain predefined folder (e.g. m:\Music). If there is not a unique one, it should show (i.e. Filter) the possibilities.
So, say I typed "Le" it would not find a unique Folder in m:\Music starting with this, so it would open the m:\Music folder and filter, thereby only showing me "Led Zeppelin" and "Lenny Kravitz".
However, had I typed "Led", it would only find the "Led Zeppelin" folder and would show that folder in the lister; i.e. automatically enter the only possible match.
I've been checking out the help and the Rename scripting option, but I think that won't lead me to a good solution. I can filter perhaps (although, how do I limit a Filter to folder starting with the filter?) but I cannot check how many results that gave me (can I?). Same goes for the Select approach (Select all, and If there's only one, enter it).
Can this be done from within DOpus, or will I need to resort to external scripts? Any ideas? Thanks!
mvdlaan[/quote]
Maybe an option would be using the CLI field, where you can filter on the fly. If you typed "le" it would instantly diplay the matching files, although i don“t think, that you can automatically open a folder, if there is only on match. This surely would be possible with a few Autohotkey lines of code.
Yes, external scripting is very often an answer. And Autohotkey is indeed something I'm familiar with. I was just wondering whether I was overlooking some hidden strengths of DO itself.
Rename scripting is a starting point to automating DO. Any plans to take this further with internal scripting?
I am still open to suggestions on how to tackle this from within DO.
If you want wildcards or regexps, these will work better:
Wildcards:
Go "m:\Music"
Select HIDEUNSEL PATTERN="{dlgstring|Search Pattern}"
RegExps:
Go "m:\Music"
Select HIDEUNSEL REGEXP PATTERN="{dlgstring|Search Pattern}"
I don't think it's possible to make either case-sensitive.
You could also do it by automating the Find command so that you end up looking at a file collection rather than a filtered view of the folder. I think doing it the way above is probably better, though.
If you want a recursive search, using the Find command may be easier, but it may still be possible using this method combined with Flat View. I've not tried that, though.