MathGroup Archive 2008

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

Search the Archive

Re: CurrentValue

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88718] Re: CurrentValue
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Wed, 14 May 2008 06:04:04 -0400 (EDT)
  • References: <g0bt88$o67$1@smc.vnet.net>

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