Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

RE: Copying cell contents?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69874] RE: [mg69829] Copying cell contents?
  • From: "Ingolf Dahl" <ingolf.dahl at telia.com>
  • Date: Tue, 26 Sep 2006 05:21:17 -0400 (EDT)

Hi,
I have tried to reproduce your error message, but not succeded completely.
The closest I get I obtain by executing the following command: 

expression /. {ProjectInformation["/Users/AES/Application
Data/Mathematica/Applications/MyAdvancedCalculations"]}

(with just a space between Application and Data). I have an old palette
created by Bobby Treat CopyAsInputForm, which does the work fairly well. You
might also try my CopyAsInputFormK button in my SetFaceAndFont Palette,
downloadable from http://web.telia.com/~u31815170/Mathematica/. It also does
a fairly good job, but has problems with the space between Application and
Data. (It is interpreted as a multiplication sign, andI cannot promise that
I am able to fix this.) However, I did the following quite complicated
operation:

Select the cell, and apply "Show Expression" (Shift+Ctrl+E in Windows). Add
the option ShowStringCharacters->True to the cell expression, and turn "Show
expression" off. What you obtain is ReplaceAll::"reps" : plus a long string,
containing second level, embedded strings. Such embedded strings might cause
some troubles. Select this long string and press the Peel button in my
SetFaceAndFont Palette. This turns the long string into an unevaluated
expression, and the second level strings become first-level strings. You can
then select the "More..." link and apply Peel once more. Then the link is
replaced by its button expression. Then use the CopyAsInputFormK button to
copy the whole expression. If it then is pasted into the email editor, the
following is obtained:

 ReplaceAll::"reps": { ProjectInformation["/Users/AES/Application
Data/Mathematica/Applications/MyAdvancedCalculations"]} is neither a list of
replacement rules nor a valid dispatch table, and so cannot be used for
replacing. Button[ More\[Ellipsis], ButtonData :> "ReplaceAll::reps",
ButtonStyle -> "RefGuideLinkText", ButtonFrame -> "None"]

You might then hand edit "\[Ellipsis]" to become "..." if you like. I think
this is a quite good text representation of the error message. 

You could of course variations of this theme, giving you similar results. In
your case, when your expression has been truncated by the Ellipsis
construction, you should of course substitute the native expression.

Best regards

Ingolf Dahl
Sweden

> -----Original Message-----
> From: AES [mailto:siegman at stanford.edu] 
To: mathgroup at smc.vnet.net
> Subject: [mg69874] [mg69829] Copying cell contents?
> 
> OK, what's the magic procedure for copying the text contents 
> of a notebook cell and pasting it into a word processor or 
> newsgroup message so I *don't* get something like the following?
> 
> 
> \!\(\*  RowBox[{\(ReplaceAll::"reps"\), \(\(:\)\(\ \)\), 
> \"\<\"\\!\\({\\(ProjectInformation[\\(\\(\\\"/Users/AE\\\"\[El
> lipsis]\\\"
> \culations\\\"\\)\\)]\\)}\\) is neither a list of replacement 
> rules nor a \valid dispatch table, and so cannot be used for 
> replacing. 
> \\\!\\(\\*ButtonBox[\\\"More\[Ellipsis]\\\", 
> ButtonStyle->\\\"RefGuideLinkText\\\\", ButtonFrame->None,
> ButtonData:>\\\"ReplaceAll::reps\\\"]\\)\"\>"}]\)
> 
> 
> 
> *  What do I select?  (Cell bracket?  or cell contents?)
> 
> *  Which of the FrontEnd menu commands do I choose?
> 
> Seems as if each and every one of the menu commands, *all* of 
> them, lead 
> to the above.
> 
> 



  • Prev by Date: Re: problem evaluating a function on a list
  • Next by Date: conversion to InputForm without spaces
  • Previous by thread: Re: Copying cell contents?
  • Next by thread: Re: Copying cell contents?