Every time it is executed (source is "F:"), the output collection does not clear from the previous search and I end up with the previous results combined with the new ones.
However, when I use the Find Panel, it works as it says. I must be doing something wrong here. Any ideas?
Use this one instead. The previous one works. But if you click the Cancel button on its string dialog, you will be prompted twice. I believe, because Opus sets the {$FindFile} variable equal to an unanswered string dialog, which subsequently gets executed again.
[code]@Set Collection = "Quick Find"
Find QUIET COLLNAME={$Collection} CLEAR SHOWRESULTS=source,tab NAME="{dlgstring|Enter the file name to search for:|}" RECURSE IN {sourcepath$}[/code]
Strangely, the button in the first post worked fine for me without any changes. I'm running a test version of Opus so perhaps something's different there. Haven't had a chance to try with the current release version of Opus.
I doubt it will help get things working but this should be a slightly more reliable version of the command when dealing with spaces in names and search patterns:
Use Nudel's button variation then. Where you relocated to the quotes above is meaningless (they might appear in the dialog title).
I usually use @nofilenamequoting. The Opus command parser tries to be smart about quotes, and Jon has worked really hard at making it smarter. But there is always some scenario where it doesn't do as well.
Thanks for all your help and advice help guys. I think I have this one sorted now.
Although, just thinking, it would be nice to have a text box in a toolbar that I could type the text straight into and when I press ENTER it would perform an action. Sort of like the Command Field but with my own custom action.
Not sure if this is possible but it would be cool.
It's not possible at the moment but similar to an idea someone raised here recently.
(I think he wanted to type into a box and then press different buttons which would be able to insert the text into different commands, but it would make sense for such a box to have a default command that was executed if you pushed return as well. I think the ideas fit together well.)