NOTE: Using this script on a very large folder may take a long time.
Code: Select all
"Cache Thumbnails"
setting AllowRecursion;
$curDir = <curpath>;
#302; // Details
#308; // Thumbnails #3
sub "_cache_dirs";
goto $curDir;
"-"
"Empty Cache"
getkey $cacheDir, "CacheDir", "Thumbs";
substr $c, $cacheDir, -1;
if ($c != "\") { $cacheDir = $cacheDir . "\"; }
delete 0, 0, $cacheDir . "*";
"_cache_dirs"
sub "_cache_dir";
sel f;
sel i;
$dirs = getinfo("SelectedItemsPathNames", "|");
$n = getinfo("CountSelected");
$i = 1;
while ($i <= $n) {
$dir = gettoken($dirs, $i, "|");
goto $dir;
sub "_cache_dirs";
$i++;
}
"_cache_dir"
focus;
sel 1;
#485; // Refresh File List
$lastFocused = 0;
$focused = getinfo("FocusedPos");
while ($focused != $lastFocused) {
sendkeys "{PGDN}", 1;
#485; // Refresh File List
$lastFocused = $focused;
$focused = getinfo("FocusedPos");
}