javascriptadobe-indesignbasil.js

basil.js scripts taking minutes to run


I'm trying to create an InDesign script using basil.js but the scripts take minutes before running. InDesign just freezes in the meanwhile. Other JS samples (not using basil) work fine. I'm using InDesign 2021 and the MacOS Big Sur 11.2. Could that be it? I'm afraid, for me, the solution cannot be downgrading. Any other thoughts?

Thanks a lot, Daniel

#includepath
"Users/danifslopes/Documents";
#include
"basiljs/bundle/basil.js";

function draw() {
    b.doc(); //with or without, the same result (I have a page opened)
    b.text("hello", 100, 100, 200, 200);
}

b.go();

Solution

  • I followed the instructions in github.com/trych/MuTypo to use the new version of basil and it seems to work great. Also, this version seems to be much simpler and practical to use.

    Thanks a lot, mdomino and fabianmoronzirfas.