Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Funny behaviour of ClipboardNotebook[] (Q: How to copy programmatically?)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86839] Funny behaviour of ClipboardNotebook[] (Q: How to copy programmatically?)
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Sun, 23 Mar 2008 01:01:12 -0500 (EST)
  • Organization: University of Bergen

When pasting quoted text from an e-mail, Mathematica will offer to 
remove the quoting marks.  It says:

"The text you are pasting appears to be from a quoted email.  Do you 
want Mathematica to remove the quoting marks before pasting it?" (Yes|No)

Here is a quoted expression to try this:

 > {9,
 >  0,
 >  7,
 >  8,
 >  7,
 >  2,
 >  5,
 >  0,
 >  7,
 >  1}

The dialogue box also comes up when evaluating the following to access 
the clipboard programmatically:

NotebookGet@ClipboardNotebook[]

This is expected and understandable.  But the dialogue box appears when 
using NotebookPut[] too if the clipboard contains a quoted expression!

NotebookPut[Notebook[{"abc"}], ClipboardNotebook[]]

Why does this happen?  Is it a bug?  Also, is this the correct way to 
*copy* a string to the clipboard programmatically?  It does work, but I 
am not sure if Notebook[{"abc"}] (with no Cells) is a correct Notebook 
expression. (Where is the correct syntax documented?)


  • Prev by Date: Re: Saving Packages
  • Next by Date: Re: Re: Re: smallest fraction
  • Previous by thread: 3D import/export format problems/bugs
  • Next by thread: Re: Funny behaviour of ClipboardNotebook[] (Q: How to copy programmatically?)