Skip to main content
Ramón G Castañeda
Inspiring
July 7, 2007
Question

Can someone write a script that goes through all folders in Bridge and Purges the Cache for each one

  • July 7, 2007
  • 15 replies
  • 2420 views
Can someone write a script that goes through all folders in Bridge and Purges the Cache for each one of them?

The Purge command in Preferences does not work; period. It appears to clear the thumbnails, but NOT the fields that appear under each thumbnail in the Content panel.

Only the Purge the Cache for 'foldername' in the Tools menu does the job.

As someone who can't script my way out of a paper bag, I'm wondering whether it's possible to write a script to go executing that command folder by folder, including all subfolders..

Any and all input is welcome.

Thanks in advance.
This topic has been closed for replies.

15 replies

Ramón G Castañeda
Inspiring
July 9, 2007
Thanks. :)
dfranzen_camera_raw
Adobe Employee
Adobe Employee
July 9, 2007
Ramon,

You can download the Bridge scripting guides by getting the Bridge CS3 SDk:

http://www.adobe.com/devnet/bridge

They should help you get out of the paper bag.

-David
Ramón G Castañeda
Inspiring
July 9, 2007
Oooops! The Apple Script Editor returns a syntax error. I guess that's not what I'm supposed to be using?

Like I wrote in the OP: "As someone who can't script my way out of a paper bag"
Ramón G Castañeda
Inspiring
July 9, 2007
Hi David,

Thanks for responding.

>Is there a specific property under the thumbnail that you are not seeing purged when you use use the Purge Cache button in the preferences panel?

It's the properties that were not there to begin with, i.e. those that were not there from the cache being built by earlier versions (prerelease) or before I began using the the Color Profile box. The ones most often missing are the Creation and Modification dates as well as the Color profile.

They will NOT be shown by the Purge Cache button in the preferences panel, but they do get properly shown under the thumbnails when the cache is re-built through the Tools menu > Cache > Purge Cache For 'thisfolder' command. I'd say it's a (minor) bug.

I'm very thorough with my system maintenance, run Cocktail daily (to run the Cron Scripts, delete caches, rotate logs, etc), Repair Permissions before and after any software upgrade, run DiskWarrior, run fsck- fy from time to time, keep the temperature inside the case down through napping (CHUD), etc.

Dual bootable, DP MDD 1.25GHz G4 (2004), maxed out at 2GB of RAM, both Spotlight and Dashboard disabled, Photoshop scratch disk on dedicated internal drive, at least 100GB available on each of the internal drives. Will be upgrading the graphics card in two weeks (currently nVidia GeForce 4 Ti 128MB).

Will try your script. Thank you.
dfranzen_camera_raw
Adobe Employee
Adobe Employee
July 9, 2007
Ramon,

Is there a specific property under the thumbnail that you are not seeing purged when you use use the Purge Cache button in the preferences panel?

Through scripting it should not be necessary to go folder by folder. Save the following script as a new .jsx file and double-click on its Thumbnail in Bridge to run it.

#target bridge
app.purgeAllCaches()

-David