Skip to main content
Inspiring
May 21, 2026
Question

Purge video cache script

  • May 21, 2026
  • 1 reply
  • 11 views

I wanted to amuse myself with a Purge Video Cache script

 

purgeVideoCacche()
{
// important (missing) code here
alert("Burp!");
}

However, doing this does not show up on ScriptListener or as a recorded action (or menu item) making it difficult to guess what the code could be.

app.runMenuItem (stringIDToTypeID("anyonesguess"))



There is purge All (but it seems to be a separate menu item - so video is probably not included)

var idPrge = charIDToTypeID( "Prge" );
var desc28 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var idPrgI = charIDToTypeID( "PrgI" );
var idAl = charIDToTypeID( "Al " );
desc28.putEnumerated( idnull, idPrgI, idAl );
executeAction( idPrge, desc28, DialogModes.NO );

 Any ideas or is this beyond the  realms of Photoshop scripting?

    1 reply

    Stephen Marsh
    Community Expert
    Community Expert
    May 21, 2026

    As it can’t even be inserted into an action as a menu item, let alone recorded, it looks like you’re out of luck.