4
$\begingroup$

I'd like to get the usage statement returned by Information[] as a plaintext string - not boxes, is there a function for this?

This is silly:

Information@ImageCrop
c = NotebookRead@PreviousCell[];
ToString[ToExpression@c[[1, 1, 1, 1, 1]]]

enter image description here

$\endgroup$
7
  • 7
    $\begingroup$ ImageCrop::usage // ToString? $\endgroup$
    – Kuba
    Jun 10, 2016 at 20:23
  • $\begingroup$ Ah that is too easy $\endgroup$
    – M.R.
    Jun 10, 2016 at 21:05
  • 4
    $\begingroup$ You may be interested in mathematica.stackexchange.com/q/22779/5478 $\endgroup$
    – Kuba
    Jun 10, 2016 at 22:44
  • $\begingroup$ Expanding on @Kuba comment: info[sym_Symbol] := ToString[sym] <> "::usage // ToString" // ToExpression $\endgroup$
    – Bob Hanlon
    Jun 11, 2016 at 0:25
  • 2
    $\begingroup$ @yode I think that should be WolframLanguageData["ImageCrop", "PlaintextUsage"]. $\endgroup$
    – Edmund
    Jun 11, 2016 at 2:31

0

Browse other questions tagged or ask your own question.