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

0

Browse other questions tagged or ask your own question.