Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13052

Re: Attaching a notebook to a message

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Attaching a notebook to a message
Date 2013-01-08 04:04 +0000
Message-ID <kcg5sh$rcc$1@smc.vnet.net> (permalink)
References <kc8k33$b1p$1@smc.vnet.net> <kcdmrf$m00$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On 07/01/2013 05:35, Frank K wrote:
> It worked on both Mathematica 8 and 9.  Version 9 had a message saying it had updated the styling.
>
It is the creation of one of these objects that is a bit flaky under 
9.0.0, because NotebookGet can generate junk in particular situations.

You can use an alternative for NotebookGet containing a workround:

NotebookGet1[nb_]:=(NotebookGet[nb]/.RowBox[x___]/;(Length[{x}]!=1 || 
Head[x]=!=List):>RowBox[{x}]);

An easy way to check, of course, is to reverse the process on the string 
before posting it. Hopefully a version 9.0.1 will be out very soon!

Now we know it works, I should add a word of warning. Obviously it is a 
good idea to turn off dynamic execution when using an 'attached' 
notebook, unless you trust the sender.

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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Attaching a notebook to a message David Bailey <dave@removedbailey.co.uk> - 2013-01-05 07:17 +0000
  Re: Attaching a notebook to a message Frank K <fkampas@gmail.com> - 2013-01-07 05:35 +0000
    Re: Attaching a notebook to a message David Bailey <dave@removedbailey.co.uk> - 2013-01-08 04:04 +0000
  Re: Attaching a notebook to a message Helen Read <readhpr@gmail.com> - 2013-01-07 05:35 +0000

csiph-web