I want to simply use a CDF deploy to export a text file onto the notebook directory

Button["Export", Export["new.txt", 1]]];

But this does not seem to work with the Wolfram Player. Are there any CDFDeploy options to make it work?

  • $\begingroup$ Export is disabled in a FreePlayer, see "Export live data/files (all formats)" in wolfram.com/cdf/adopting-cdf/… $\endgroup$
    – Kuba
    Commented Nov 3, 2022 at 14:44
  • $\begingroup$ I think you're limited to CopyToClipBoard as far as exporting information. $\endgroup$
    – JimB
    Commented Nov 3, 2022 at 15:54
  • $\begingroup$ @JimB What about editing a text file? A guess that would require importing it somehow. $\endgroup$
    – sam wolfe
    Commented Nov 3, 2022 at 16:38
  • $\begingroup$ Sorry, I'm not understanding the question. If you have a text editor open you can paste stuff into a text file and then edit. As noted by @Kuba, exporting is pretty limited in the Wolfram Player (formerly CDF Player). $\endgroup$
    – JimB
    Commented Nov 3, 2022 at 17:36

1 Answer 1


Here is a work version: use player to open a cdf file, then click the button to export file.

Button["Export", Export["/tmp/new.txt", 1]]

server code:

WolframPlayer[box_] := {
        Export[FileNameJoin@{$TemporaryOutput, CreateUUID["CDFOutput-"]<>".cdf"}, Notebook[{Cell@BoxData@ToBoxes@box}, WindowSize -> All], "CDF"],
} // StringRiffle // Run
request["Body"] // ToExpression[#, StandardForm]& // WolframPlayer;


enter image description here

full code is here:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.