MathGroup Archive 2009

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

Search the Archive

Re: touch/open on Mac


On Jan 29, 4:54 am, Frank Hu <frank1... at gmail.com> wrote:
=7F> I used to be able to create a new notebook by these two commands
>
> touch foo.nb
> open foo.nb
>
> But after upgrading to V7, foo.nb is treated as a text file and saving =
 
> the file will just save the textural content of the notebook and lose  
> all the structures.  Is there anyway to get the old behavior back,  
> namely let Mathematica treat an empty file with an nb suffix as an  
> empty notebook file?

Try this instead:

echo "Notebook[]" >> foo.nb
open foo.nb

-Rob


  • Prev by Date: Re: parasite points with Mesh
  • Next by Date: Defining assumptions globally
  • Previous by thread: touch/open on Mac
  • Next by thread: Re: touch/open on Mac