MathGroup Archive 2008

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

Search the Archive

Re: CurrentValue


CurrentValue[nb, "SelectionData"]

where nb is the NotebookObject of the notebook you are interested in.

--David
http://scientificarts.com/worklife/




On May 13, 7:15 am, Hannes Kessler <HannesKess... at hushmail.com> wrote:
> Hello,
>
> CurrentValue["SelectionData"] works for selections in the evaluation
> notebook:
>
> Button["label",
>  With[{repeated = ToString@CurrentValue@"SelectionData"},
>   NotebookApply[EvaluationNotebook[],
>    "f[" <> repeated <> "," <> repeated <> "]"]]]
>
> How to use CurrentValue for other notebooks than the evaluation
> notebook?
> CurrentValue[NotebookSelection[nb]] does not work.
>
> Regards,
> Hannes Kesler



  • Prev by Date: Re: PlotLegend not working properly in my Mathematica 6
  • Next by Date: Re: SetOptions[Plot, BaseStyle :> myBaseStyle] does not work
  • Previous by thread: CurrentValue
  • Next by thread: Re: CurrentValue