Copy link to clipboard
Copied
Hi Team,
In our code, we are using InDesign Server 2023. And we are using font files and IDML for exporting as PDF through InDesignScript.jsx file. But after execution when we are trying to delete the directory where IDML and font file exist, the font file is not deleting and showing alert like: The process cannot access the file 'Stratum1-Bold.otf' because it is being used by another process .
Please help me regarding this.
Thanks in advance.
Regards,
Bhaskar Parmar
Can you share the code?
Just guessing that you probably need to close the file before the script gets to the deletion of the folder/files with fonts.
Hard to know what's going on - can you share more details?
Copy link to clipboard
Copied
Can you share the code?
Just guessing that you probably need to close the file before the script gets to the deletion of the folder/files with fonts.
Hard to know what's going on - can you share more details?
Copy link to clipboard
Copied
Hi @eugene,
Yes, You are right. We should close the file before the script gets return result.
Thanks for your support :-).
Copy link to clipboard
Copied
Lst file is a temporary file that is created by InDesign for fonts loaded from the Document Fonts folder. I suppose your document is not closed when you are trying to delete the folder.
-Manan
Copy link to clipboard
Copied
Hi @manan
Yes, You are right. We need to close the Document before the script gets return result.
Thanks for your support 🙂 .