[NTLK] NewtonScript question: How to restart the Application from within the application

DXH dxh at woh.rr.com
Sat Mar 12 16:43:31 PST 2022


Hi Frank,

I would try:

getRoot().(kAppSymbol):closethenopenagainbecauseiwantochangethelanguage();

…but then I don’t know anything about programming…

PCBman

Sent from my iPad

> On Mar 12, 2022, at 7:19 PM, NewtonTalk <newtontalk at pda-soft.de> wrote:
> 
> Hi gang,
> 
> in order for a language change to take effect, NewtTest needs to be closed
> and reopened. It's pretty easy to close it programmatically as follows:
> 
>     getRoot().(kAppSymbol):close();
> 
> But it would be cool if there was a way to reopen it automatically once it
> has been closed. Of course this could be done via
> 
>     getRoot().(kAppSymbol):open();
> 
> but NewtTest can't do this because it is currently closed. So I'd need a way
> for NewtTest to tell getRoot() to not only close it, but to reopen it
> afterwards. 
> 
> I've been perusing the usual Newton programming documentation, but didn't
> find anything. Which isn't overly surprising, since I'm an expert in not
> finding NewtonScript-related information...
> 
> Any ideas?
> 
> Thanks
> 
> Frank
> 
> -- Newton software and hardware at http://www.pda-soft.de
> 
> 
> ----------------------------------------------------------------------
> 
> http://newtontalk.net
> http://twitter.com/newtontalk



More information about the NewtonTalk mailing list