MathGroup Archive 2009

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

Search the Archive

Re: touch/open on Mac

  • To: mathgroup at smc.vnet.net
  • Subject: [mg95933] Re: touch/open on Mac
  • From: Bob F <deepyogurt at gmail.com>
  • Date: Fri, 30 Jan 2009 05:43:38 -0500 (EST)
  • References: <gls1ss$hi4$1@smc.vnet.net>

On Jan 29, 3:54 am, Frank Hu <frank1... at gmail.com> wrote:
> Hi, Group,
>
> 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?
>
> Thanks,
> Frank

You might also try

   touch foo.nb
   open -a /Applications/Mathematica.app foo.nb   (or whatever your
Mathematica is named)

-Bob


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