On Sat, Jul 22, 2017 at 3:24 PM, Luke Gorrie luke@snabb.co wrote:
Hi Andrei,
One more follow-on question about this script:
On 19 July 2017 at 23:58, Andrei Chis chisvasileandrei@gmail.com wrote:
Or you can just reuse an inspector:
browser := GTInspector new noTitle; noActions; showFirst: [ :composite | composite text title: 'Script editor'; act: [ :aPresentation | aPresentation selection: 'result' ] iconName: #glamorousGo on: $G entitled: 'Run' ]; yourself. browser openOn: 'initial script'
Can you tell me how to access the script when producing the result?
I have tried adding a second argument to the #act: block, and I have tried calling 'browser entity', but in both cases I get the original value of the text area rather than the current one.
Since the presentation is a text presentation 'aPresentation text' will return its current text. The second parameter will be the entity on which the browser was opened which is the original text.
Cheers, Andrei
Moose-dev mailing list Moose-dev@list.inf.unibe.ch https://www.list.inf.unibe.ch/listinfo/moose-dev