Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I'm working in a script to convert some files and, after the convertion, the folder has no thumbs to display (but Windows Explorer shows everything ok). If I manually go to the Tools > Cache > Purge cache to this Folder, it works. But I need this working in my script.
Any help will be appreciated.
Thanks in advance.
Copy link to clipboard
Copied
Looking at Bridge 2023 JavaScript Reference, p. 65, this should purge the cache for the current folder:
app.document.chooseMenuItem("PurgeCache");
However, I can't get it to work.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I can get this to work:
app.document.chooseMenuItem("PurgeCacheForSelected");
You could selectAll then PurgeCacheForSelected
app.document.selectAll();
app.document.chooseMenuItem("PurgeCacheForSelected");