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