Flatview and Chrome Cookies

I have the following code defined on a button. Its purpose is to locate and select a pair of Chrome cookies (there are always 2 of them).

Go "/localappdata\Google\Chrome\User Data" NEW [ Set FLATVIEW=MixedNoFolders,Toggle Set QUICKFILTER *xyz* Select ALL ]
The result is consistently as shown below. The cookies are located and selected but the lister shows each cookie repeated 3 times and the total file count is shown as 6, not 2. If I execute the same Go, Set, Set, Select commands manually, one by one, the results are as expected - 2 files located, 2 files selected, 2/2 files counted.

If it helps, the 2 cookies are located quickly then very soon afterwards a duplicate pair is added to the filtered list and then a triplicate pair. The duplicates and triplicates are "phantoms". There is only one copy of each cookie.

Regards, AB


What does the location column show for those files?

It's on the right of the image if you can scroll it or open it in a separate tab. (Scrolling works in the Android browser, though the scrollbar is almost literally invisible so you wouldn't notice it can scroll without trying.)

Out of interest, I just tried the same button from a vanilla configuration. The results add a further twist to the tale. With my normal configuration, the behaviour I reported above is 100% repeatable. With a vanilla configuration the reported behaviour manifests every second time. Every other time, the filter claims to find nothing. Once again, the alternating behaviour is 100% repeatable.

Jon, in answer to your earlier question, the location is Profile 1\Local Storage.

Regards, AB

Did you try disabling any scripts you have installed?
Did it have any impact?

I can confirm the problem. There seems to be an issue with turning on FlatView in a new lister via an embedded command.

As a workaround, doing the same thing via a simple script seems to work reliably.

Remember to change the button type to Script Function:

[code]@script vbscript
Option Explicit

Dim cmd
Set cmd = DOpus.NewCommand

cmd.RunCommand "Go ""/localappdata\Google\Chrome\User Data"" New"
cmd.SetSourceTab cmd.Results.NewListers(0).ActiveTab

cmd.RunCommand "Set FLATVIEW=MixedNoFolders,On"
cmd.RunCommand "Set QUICKFILTER xyz"
cmd.RunCommand "Select All"[/code]

Thanks Leo. Your workaround certainly eliminates the duplication and triplication of the filtered items, however the Select ALL at the end never takes effect - the items remain unselected. Tested on a vanilla v11.4.2 configuration.

Regards, AB

I still have this problem with DOpus 11.8.1. After further investigation I have managed to create a test structure and matching command button where the final Select fails most, but not all, of the time on a Windows 7 system with an SSD. There is no reliable pattern to success/failure - sometimes 2 or 3 out of 10 succeed, sometimes 8 or 9. On a Windows 10 VM running under VMWare Workstation on the same W7+SSD system, it fails consistently.

Leo/Jon - I can zip and send the button and structure if you want to have a look.

Regards, AB