Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In InDesign, the built-in utils do not work #31

Open
xh4010 opened this issue Sep 18, 2020 · 1 comment
Open

In InDesign, the built-in utils do not work #31

xh4010 opened this issue Sep 18, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xh4010
Copy link

xh4010 commented Sep 18, 2020

In InDesign, the built-in utils do not work.

Panel.vue loadUtils () -- gehenna() failed to load the built-in utils, because of the CSInterface.evalScript return "" in library [email protected]

tested under PS, evalScript return “undefined”, loadUtils() without error.

You've noticed this problem, [email protected]

async function evalScript(text, defs = {}) {
  if (!isBrowser) {
    let CS_Interface = new CSInterface();
    return new Promise((resolve, reject) => {
      CS_Interface.evalScript(`${text}`, (res) => {
        // For some reason this was returning errors in InDesign alone. No idea why
        resolve(isJson(res) ? JSON.parse(res) : res);
        // if (res) resolve(isJson(res) ? JSON.parse(res) : res);
        // else if (res.length) reject({ error: res });
      });
    });
  } else return defs;
}

But gehenna's dependent library version is still 0.07.

@Inventsable Inventsable self-assigned this Sep 18, 2020
@Inventsable Inventsable added the bug Something isn't working label Sep 18, 2020
@Inventsable
Copy link
Member

Will be looking into this very soon -- don't personally script for IDSN very often and just happened to catch this while doing testing for the themes in IDSN I believe. Let me know if you've already solved it on your end too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants