I am loading a .tpl file from a js script, how to bypass CC 2018's 'Import compatible tools as brush presets' suggestion dialog box?
I have a script that loads a .tpl file from a specified location
toolPresetFile = new File("/path/to/file");
app.load(toolPresetFile);
This seems to work silently without problems in CS4 up until CC 2017. In CC 2018, when trying to load the .tpl file, I get the following dialog.

There are 3 presets inside this file, and it is important that they all Load as Tools (and not be imported as brushes), because of something particular to my workflow.
Ideally I would like to prevent this suggestion from appearing at all, and Load as Tools by default.
As suggested in How to avoid modal dialogs from blocking script execution , I have tried doing:
app.displayDialogs = DialogModes.NO;
[my code to load the .tpl file]
app.displayDialogs = DialogModes.ERROR;
This did not work, this particular warning/suggestion dialog seems unavoidable and I have not been able to find a way to suppress or bypass it (yes, checking off Don't show again would be a solution, but I want it to be so that a user using the script for the first time never has to deal with any dialog interruption when running the script).
What I am looking for now, is a way to detect this dialog from within the script, and automatically choose Load as Tools without the user having to click on anything. Is this possible?
If not, does anyone know of a way to force a tpl file to load as type 'tool presets' and bypass Photoshop CC 2018's suggestion about brush presets?
