Skip to main content
Participating Frequently
March 15, 2011
Question

Missing Font workaround for JavaScripting

  • March 15, 2011
  • 3 replies
  • 2074 views

Hello, I am automating an Illustrator workflow. I receive customer files and regularly have to substitute in missing fonts. The problem is that when a font is missing I get that dialog box instantly and would like a way to close it and continue on with the script. I will deal with the missing fonts later when the script is finished.

I'm using the ESTK with JavaScripting and the solution should be compatible with a Mac & a PC.

So my question is, is there a way to disable this missing fonts message or a way to simulate clicking the 'Done' button through a script? Or possibly some other solution I'm not thinking of...?

Thanks in advance for you help!

This topic has been closed for replies.

3 replies

Participating Frequently
July 5, 2011

Hello all,

I have the same problem.

I have tried the "DisplayAlert" solution without succes.

Do you have find the solution ?

Thank for your help.

Participating Frequently
July 5, 2011

After one day looking for a solution on the web, I'm so disapointed...

Is it possible that there is no issue ?

What do you think about validate the "Missing Font" dialog box by simulate the "enter" key ?

And how to achieve this action with JavaScript ?

Thank you.

CarlosCanto
Community Expert
Community Expert
July 5, 2011

I don't get the dialog, can you post your script here?

Muppet_Mark-QAl63s
Inspiring
March 16, 2011

Have you also tried changing the app properties first…

app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS; app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

CarlosCanto
Community Expert
Community Expert
March 16, 2011

I get the missing font dialog when I open the file from the GUI. When I open it from the script it just opens, no dialog.

var file = new File("yourFullPathFile");

var idoc = app.open(file);