MathGroup Archive 2010

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

Search the Archive

Re: Push to clipboard?

  • To: mathgroup at
  • Subject: [mg110269] Re: Push to clipboard?
  • From: ADL <alberto.dilullo at>
  • Date: Fri, 11 Jun 2010 02:08:59 -0400 (EDT)
  • References: <hudcjc$d7g$> <huincm$o10$>

It may be also interesting to note that, if you wish to copy in the
clipboard a string without quotation marks, you may use the following:

CopyToClipboard[expr_] :=
   nb = CreateDocument[Null, Visible -> False, WindowSelected ->
   NotebookWrite[nb, Cell[OutputFormData @ expr], All];
   FrontEndExecute[FrontEndToken[nb, "Copy"]];
   NotebookClose @ nb

It works on version Win 7.0.1


  • Prev by Date: Re: Lists: Row Vectors vs. Column Vectors. (feels like such a silly
  • Next by Date: SQL question, Can I do something like Rest[] and Most[]
  • Previous by thread: Re: Push to clipboard?
  • Next by thread: Simplifying complicated expressions