Skip to main content
Inspiring
August 31, 2022
Question

Temporarily suppress missing fonts dialog

  • August 31, 2022
  • 1 reply
  • 785 views

Is there a temporary way to supress/ignore the missing fonts dialog box using a script?

 

I'm batch running a script to look over a lot of .psd files. It'll just hang when it finds a psd that's missing a font and it'll pop up the dialog box.

 

The idea is then, once the script has finished, to then switch back on the dilaogue once more. Restoring balance, peace, harmony and type substition options to the universe once more.

 

Sort of something like this:

// Switch off any dialog boxes
displayDialogs = DialogModes.NO; // OFF

// upon start
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

// do stuff

// upon completion
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;

// Switch ON any dialog boxes
displayDialogs = DialogModes.ALL;

 

Only that won't work for Photoshop 😉

This topic has been closed for replies.

1 reply

Legend
August 31, 2022

 

try this:

var f = File.openDialog();
if (f){
(d = new ActionDescriptor).putPath(stringIDToTypeID("target"), f);
executeAction(stringIDToTypeID("open"), d, DialogModes.NO);}

 

Inspiring
September 1, 2022

That's good, but not what I'm after as it's a replacement for open dialog.

Legend
September 1, 2022

This is just an example. Instead of :

 

var f = File.openDialog();

 

use:

 

var f = new File ('/e/test.psd')

 

Or do you get a message about the missing font not at the moment of opening, but at the moment of changing the layer properties?