Page 2 of 2

Re: Open menus at mouse location (favorites, recent folders, etc.)

Posted: 04 Mar 2018 07:02
by highend
A bit of a scripting tip, jupe:

Code: Select all

goto formatlist(report("{prop:#LinkTarget}|", quicksearch("*.lnk", "%APPDATA%\Microsoft\Windows\Recent", "|")), "ed"); . "?";
or for the paper folder

Code: Select all

paperfolder("Recent Folders", formatlist(report("{prop:#LinkTarget}<crlf>", quicksearch("*.lnk", "%APPDATA%\Microsoft\Windows\Recent", "|")), "ed", <crlf>));
- Faster
- Less "bloated"

Re: Open menus at mouse location (favorites, recent folders, etc.)

Posted: 04 Mar 2018 10:35
by jupe
Thanks for the tip, but in this case I don't see how it works because the OP wanted Recent Folders, not all Recent Items, that's not to say my code couldn't be better, I was just giving a quick example though.

Re: Open menus at mouse location (favorites, recent folders, etc.)

Posted: 04 Mar 2018 11:24
by highend
Ok, I see. Limiting it to folders only wouldn't work that way. report() can't resolve the #LinkTarget at runtime to apply the {Dir ...} field (which would still spare a loop to gather the destination folders)