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?)
- Follow-Ups:
- Re: Funny behaviour of ClipboardNotebook[] (Q: How to copy programmatically?)
- From: "Szabolcs HorvÃt" <szhorvat@gmail.com>
- Re: Funny behaviour of ClipboardNotebook[] (Q: How to copy programmatically?)
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Funny behaviour of ClipboardNotebook[] (Q: How to copy programmatically?)