Skip to main content
Participant
December 20, 2023
Answered

Create and save a text file in a CEP extension

  • December 20, 2023
  • 1 reply
  • 687 views

How do I make a button to save an array of text to a new .txt file? I've tried all the methods on this site,

but none of them worked. My code would stop functions on the save file call but return no error. Anyone know how to get this to work? Thanks!

This topic has been closed for replies.
Correct answer Mathias Moehl

CEP has its own writeFile function:

https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_9.x/Documentation/CEP%209.0%20HTML%20Extension%20Cookbook.md#other-javascript-apis

 

Alternatively, on the jsx side of your extension, you can use the ExtendScript API to handle files:

https://extendscript.docsforadobe.dev/file-system-access/index.html

 

 

1 reply

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
December 20, 2023

CEP has its own writeFile function:

https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_9.x/Documentation/CEP%209.0%20HTML%20Extension%20Cookbook.md#other-javascript-apis

 

Alternatively, on the jsx side of your extension, you can use the ExtendScript API to handle files:

https://extendscript.docsforadobe.dev/file-system-access/index.html

 

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects