app.project.reload() not working when changing "Type".
Hi everyone.
I have a problem working with mixed english and arab compositions and scripting.
In short, if I change the "Type" to "South Asian and Middle Eastern" with script and then reset paragraphs or try to create new layers, it's as if I did not change that setting. If I change it by hand, it works. However, I would like to be able to change it by script without restarting AE. This is the code I use.
app.preferences.savePrefAsString ('Type', 'Text Engine', '1');
app.preferences.saveToDisk ();
app.preferences.reload ();
resetParagraph(app.project.activeItem.selectedLayers[0])
function resetParagraph (myLayer) {
var txtDoc = myLayer ('Text') ('Source Text').value;
txtDoc.resetParagraphStyle ();
myLayer ('Text') ('Source Text').setValue (txtDoc);
}This just resets the paragraph to whatever setting "Type" had before running the script.
Thanks everyone in advance 😄
