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

MathGroup Archive 2008

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

Search the Archive

Re: Accessing the contents of the clipboard

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85279] Re: Accessing the contents of the clipboard
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Tue, 5 Feb 2008 06:03:11 -0500 (EST)
  • References: <200802020827.DAA16177@smc.vnet.net> <fo3g2j$b0m$1@smc.vnet.net>

On Feb 2, 11:31=A0pm, "Szabolcs Horv=E1t" <szhor... at gmail.com> wrote:
It does work...   of course you need to have copied something first.
Perhaps that's the reason.  Also, note that this approach only works
in very selected cases.  The correct approach is to simply use

NotebookGet[ClipboardNotebook[]]

and then, based on your knowledge of what has been copied into that
notebook, manipulate the cells that are in the first part of the
result.  But it does indeed requires some notebook programming
finesse.

I hope that this helps...
-David

A WorkLife FrameWork
E x t e n d i n g MATHEMATICA's Reach...
http://scientificarts.com/worklife/

> On Feb 2, 2008 8:36 PM, Yuri Kandrashkin <spinalge... at gmail.com> wrote:
>
> > Hi,
>
> > I typically use the solution based on ClipboardNotebook:
>
> Thank you for the reply!
>
> > SelectionMove[ClipboardNotebook[], All, Notebook]
> > SelectionMove[ClipboardNotebook[], All, CellContents]
> > ToExpression[NotebookRead@ClipboardNotebook[], StandardForm, Hold]
>
> Unfortunately this does not seem to work in Mathematica 6.



  • Prev by Date: Re: Efficient way of reading matrices
  • Next by Date: Re: Possible bug in ListAnimate[] or Manipulate[] v6.0
  • Previous by thread: Re: Accessing the contents of the clipboard
  • Next by thread: Re: Accessing the contents of the clipboard