sandmann
65 discussion posts
I have a trigger for Firefox to move the Downloads window to a specific location using Window Created, the process filename, and the Window Text: ="Downloads"
This works, but it is also triggered by any window that begins with the word "Downloads". So it's acting like a stem of sorts rather than an if-and-only-if-it-exactly-matches modifier.
Is this a bug or by design?
Suggestions for accomplishing what I want? I've tried different Frequency settings but they don't seem to help because the Firefox downloads window may or may not be open when I hit an offending webpage.
Thanks.
Good question! I don't think there's a way to do that with just the text query for Window Text.
Is the Window Class for the Downloads window different than the main windows?
sandmann
65 discussion posts
Yes, for both the main and downloads window it is "MozillaWindowClass".
Based on the Help text I read it as an IFF modifier rather than a stem. If stem was the intention, then maybe add a double-equal (=="Downloads") to clarify that it should be an exact if-and-only-if condition.
Jan 22, 2020 (modified Jan 22, 2020)
•
#3
Ok, looks like we may be able to add an IFF operator for the next version. We'll be sure to let you know when it's been added.
Thanks!
Thanks for the heads up on that! I'm not sure what's going on there but will pass this to our developers so they can have a look at it.
Ok, I've heard back from our devs, and hopefully this makes sense. There actually is a difference here based on the order, and it has to do with how the text query generates the boolean algebra. The "-" symbol is the same as a boolean NOT, spaces are a boolean OR, and "+" is a boolean AND.
So in the first query, it is the same as entering "Downloads NOT sitename". But since this doesn't make any sense, the query automatically adds a boolean AND in there, so it turns into "Downloads AND NOT sitename". In plain language, this is "contains downloads and doesn't contain sitename." This query will only match window titles that contain the word downloads and don't contain the word sitename.
In the second one, it's the same as entering "NOT binary OR downloads", which does make sense, so the query doesn't change. In plain language, this is "doesn't contain binary or contains downloads." This query will match window titles that contain downloads, or don't contain binary. So it would actually match a window title with "blah downloads" or "yadda yadda" (because it doesn't contain binary).
Hopefully that makes sense as to why it is this way. I'm putting a note on my list to try and update the help text for the Query syntax to add some info about this.
Thanks!
sandmann
65 discussion posts
So this is one of those situations when the software is trying to be helpful rather than consistent....
I understand Boolean logic, but implied operators are handled inconsistently across the web (sometimes OR, sometimes AND, sometimes an error). Or here, where it is context specific.
I have a statistics and coding background so my vote is always consistency. That said, I noticed that the help text specifically omits the word "Boolean," I assume to avoid scaring away non-tech users.
Thanks for the info.