MathGroup Archive 2010

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

Search the Archive

Re: Disable save in player pro

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111866] Re: Disable save in player pro
  • From: Simon <simonjtyler at gmail.com>
  • Date: Mon, 16 Aug 2010 05:53:51 -0400 (EDT)
  • References: <i2ok99$838$1@smc.vnet.net>

Hi Nate,

If you delete all the cache information at the beginning and end of
the notebook file, then Mathematica can't figure out that anything has changed
and does not complain. This is also useful if you want to version
control a notebook and is basically what is done by the perl script at
http://www.itwm.fraunhofer.de/as/asemployees/wichmann/nbcache.html

Simon

On Jul 28, 4:55 pm, Nate Dudenhoeffer <ndudenhoef... at gmail.com> wrote:
> Thanks for the response John.
> The dilemma you mention of saving the notebook while still in development
> brings to mind another question, which is somewhat off-topic.
>
> I would like to be able to edit a file just before deployment using a scr=
ipt
> outside of Mathematica.  Perhaps an expression search in Workbench, or =
maybe
> just using grep in a text editor.  The option you mention would be nice=
ly
> applied with this method, I also might like to apply Editable->False in s=
ome
> cases.  I also often edit stylesheets in a text editor.
>
> The problem with this is that then I get the error message about the file
> being edited outside of Mathematica.  Is there a way to prevent that er=
ror
> dialog?
>
> Thanks,
> Nate
>
> On Tue, Jul 27, 2010 at 10:44 AM, John Fultz <jfu... at wolfram.com> wrote:
> > On Tue, 27 Jul 2010 07:53:11 -0400 (EDT), Nate Dudenhoeffer wrote:
> > > I am deploying several notebooks using player pro.  Is there a way =
to
> > > prevent the user from getting the "Save Changes" dialog on exit?  I=
 want
> > > to
> > > ensure that every time a user opens the file it looks exactly the sam=
e.
>
> > > I suppose this could be accomplished by locking the file, but I also
> > would
> > > like to avoid confusing the user with a save dialog.
>
> > > Thanks,
> > > Nate
>
> > You can set the Saveable->False option on the notebook (this can be don=
e in
> > the
> > Option Inspector).  This brings up the dilemma of how you save a note=
book
> > once
> > you've done this, of course.  You can still save it using File->Save =
As, or
> > by
> > using the NotebookSave[] kernel command.
>
> > Sincerely,
>
> > John Fultz
> > jfu... at wolfram.com
> > User Interface Group
> > Wolfram Research, Inc.



  • Prev by Date: Re: Snapping a Locator to an Interpolation curve
  • Next by Date: Re: answer // further // Benchmark - 64 bit much slower than 32 bit
  • Previous by thread: Re: Disable save in player pro
  • Next by thread: Re: Disable save in player pro