MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: command to save as .m file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113627] Re: command to save as .m file
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Fri, 5 Nov 2010 05:11:56 -0500 (EST)
  • References: <iatspo$eav$1@smc.vnet.net>

On 04/11/10 09:01, Sebastian wrote:
> Hi,
> I've been searching the newsgroup and the web for an answer for this,
> but all the results were unsatisfactory:
> Is there a way to save the currently opened .nb file to a .m file by
> using a mathematica command and not the "Save as..." menu command?
> Please note that I want _all_ the cells to be written to the m file,
> not only the initialization cells. Even better would be a way to do
> this on every save of the nb, but I have given up hope that such a
> thing is possible. All this is part of my effort to find an effective
> version control solution for my mathematica files.
> TIA
> Sebastian
>
It would definitely help to explain a bit about what you want to achieve.

However, you could read your notebook with NotebookGet, then write that 
messy structure to a .m file with Save. It would really help to 
understand how you want to use this.

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: Numerical solution of the heat equation on a disk with Dirichlet
  • Next by Date: Re: Graphics: How to get values corresponding to Automatic?
  • Previous by thread: command to save as .m file
  • Next by thread: Re: command to save as .m file