Skip to main content
Participant
December 12, 2023
Answered

Font file like: 'AdobeFnt21.lst', Not able to delete

  • December 12, 2023
  • 2 replies
  • 435 views

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

 

This topic has been closed for replies.
Correct answer Eugene Tyson

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?

2 replies

Community Expert
December 24, 2023

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

-Manan
Participant
December 26, 2023

Hi @17199831
Yes, You are right. We need to close the Document before the script gets return result.
Thanks for your support 🙂 .

Eugene TysonCommunity ExpertCorrect answer
Community Expert
December 23, 2023

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?

Participant
December 26, 2023

Hi @2212081,
Yes, You are right. We should close the file before the script gets return result.
Thanks for your support :-).