Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Photoshop missing dialog bug, maybe a script can help

Contributor ,
Sep 22, 2023 Sep 22, 2023

Hi, i remember reading somewhere that you can disable and re-enable the gpu using a script whilst PS is still running. Maybe it can be used to help solve a problem i and several others have reported to me using a Mac Studio.

 

Randomly all pop-up dialogs stop being shown, it appears like PS is frozen but pressing ESC makes a dialog flash (appear then disappear)

For example, if i have a document open and i try to close it without saving it PS freezes, it seems it just isn't showing the dialog saying are you sure you don't want to save. Pressing tab seemingly does nothing so i can't select no. If i press enter  the file browser does show up so i can save files but i can't just close them. Obviously any other similar dialog also doesn't appear so i have to kill PS and reopen. This happens randomly, sometimes not at all in a day, other times a few times an hr.

 

So my question is can a script disable and then rre-enable the gpu. I believe someone on this forum said it could a while back i just can't find the script to try it.

 

Thanks

TOPICS
Actions and scripting , macOS
179
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Sep 22, 2023 Sep 22, 2023
LATEST

@jackdaw_1066 – You can try the following to disable/enable the entire Preferences > Performance > Use Graphics Processor setting:

 

enableGPU(false); // false (off) or true (on)

function enableGPU(theBool) {
    var idset = stringIDToTypeID( "set" );
    var desc16 = new ActionDescriptor();
    var idnull = stringIDToTypeID( "null" );
        var ref8 = new ActionReference();
        var idproperty = stringIDToTypeID( "property" );
        var idcachePrefs = stringIDToTypeID( "cachePrefs" );
        ref8.putProperty( idproperty, idcachePrefs );
        var idapplication = stringIDToTypeID( "application" );
        var idordinal = stringIDToTypeID( "ordinal" );
        var idtargetEnum = stringIDToTypeID( "targetEnum" );
        ref8.putEnumerated( idapplication, idordinal, idtargetEnum );
    desc16.putReference( idnull, ref8 );
    var idto = stringIDToTypeID( "to" );
        var desc17 = new ActionDescriptor();
        var idopenglEnabled = stringIDToTypeID( "openglEnabled" );
        desc17.putBoolean( idopenglEnabled, theBool );
    var idcachePrefs = stringIDToTypeID( "cachePrefs" );
    desc16.putObject( idto, idcachePrefs, desc17 );
executeAction( idset, desc16, DialogModes.NO );
}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines