Copy link to clipboard
Copied
Using extendscript, I am opening a project from the drive.
project = new File(projectPath);
app.open(project);Here, project is a .aep file, which may/maynot have unresolved font issues and the software presents me with this dialog box.
In case it does, I want to close this modal from the extendscript itself. How can this be done?
Copy link to clipboard
Copied
There is no programmatic way to close this window.
However, you can disable Do not warn me about missing fonts when opening projects before opening the project programmatically before opening the project, by modifying AE preferences (not at PC, cannot give you the exact line of code).
Let me know if this helps.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Yes.
More info in the docs http://docs.aenhancers.com/general/application/?highlight=beginSuppressDialogs#app-beginsuppressdial...
Copy link to clipboard
Copied
You need to query the internal command ID of the dialog button and then execute it.
Mylenium
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Here's a snippet to toggle visibility of this dialog. Change warnAboutMissingFonts value as per your needs
(function setMissingFontsDialogVisible() {
var warnAboutMissingFonts = false;
var section = 'General Section';
var key = 'Hide Missing Font Dialog';
var prefType = PREFType.PREF_Type_MACHINE_INDEPENDENT;
try {
app.preferences.savePrefAsBool(section, key, warnAboutMissingFonts, prefType);
app.preferences.saveToDisk();
app.preferences.reload();
} catch (error) {
alert(error);
}
})();
Copy link to clipboard
Copied
Hey Tomas, what about these? I believe they solves missing fonts as well, but don't remember 100%.
app.beginSuppressDialogs()
app.endSuppressDialogs()
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I kind of have a memory from the past. where this KIND OF worked. And in fact, worked in a bit tedious manner.
For example, if suppressDialogs were beginned but code stopped at some point... During new script execution process it forced to 'save' the status of previous project, without a way to overcome it. That was a tedious part in the development 🙂 But probably this could have be tested to make sure at what cases it works indeed.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more