Skip to main content
Participant
June 21, 2021
Question

CEP Extension File Write Failure

  • June 21, 2021
  • 2 replies
  • 528 views

I'm having an issue with 1 user of an Illustrator CEP extension on a Macbook. We have some code that exports an artboard and writes a .jpg of the artboard to the /tmp/<extension name> directory but it is failing. I can only assume that it's a file permissions issue but I can't find a way to determine that. I have verified that the user account has write permissions to this directory. The only error message outputted to the console is "ScriptLoader:: Error in eval script". Does anyone have any tips on how I could further debug this issue? I've been researching how to monitor the file system for access errors or get more detailed logging in the console but to no avail. Any help would be greatly appreciated!

    This topic has been closed for replies.

    2 replies

    schroef
    Inspiring
    November 16, 2023

    You probably solved it. But here goes for others.

     

    I always try a hardcoded path then,  thus i add var filePath = '/users/NAME/desktop/' then check if that works. I think that evalScript error is somethign else. But without seeing the actual script its hard to guess

    Community Expert
    June 22, 2021

    Could you try and do the same operation on the same path using just your JSX file and not routing it via the CSInterface. It might be possible that there is some issue with the arguments supplied or some other code bug in JSX is the reason for the error.

    -Manan

    -Manan