簡體   English   中英

basil.js 腳本需要幾分鍾才能運行

[英]basil.js scripts taking minutes to run

我正在嘗試使用 basil.js 創建一個 InDesign 腳本,但腳本需要幾分鍾才能運行。 與此同時,InDesign 只是凍結了。 其他 JS 示例(不使用 basil)工作正常。 我正在使用 InDesign 2021 和 MacOS Big Sur 11.2。 會是這樣嗎? 恐怕,對我來說,解決方案不能降級。 還有其他想法嗎?

非常感謝,丹尼爾

#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();

我按照github.com/trych/MuTypo中的說明使用新版本的 basil,它似乎工作得很好。 此外,這個版本似乎更簡單實用。

非常感謝,mdomino 和 fabianmoronzirfas。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM