Re: Several instances of the same App
Jean-Luc Arnaud <jean-luc-E/[email protected]>
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Organization | Centre Direct du Multimédia |
| Message-ID | <[email protected]> |
Maybe... I just tested my new code on Windows: it works like a charm! Now, working on the Mac side... Have a nice WE! Jean-Luc Arnaud Le 19/05/2017 à 17:45, Marnaud a écrit : > Le 19 mai 2017 à 17:07 du soir, Jean-Luc Arnaud <[email protected]> a écrit: > >> Hi Arnaud, >> >> I don't know if this may be of any interest for you, but here is a way to shorten your code: >> >> - You may launch the slave app and pass it parameters in the same command, using FolderItem.Launch(parameters as String) in the Master App, and getting these parameters with the System.CommandLine function in the slave. >> >> - This works for Windows, Linux and Mac as well, >> >> - For the Mac, launch will not run a new instance of the slave app. Instead, use a shell command "open -n SlaveAppPath --args Parameters". >> >> Try it, it’s magic! > Hello Jean-Luc, > > Thank you very much for this part of code! I guess I never used that because Launch taking a string parameter looks new to me (I assume it’s a new item in the framework). > _______________________________________________ > > Xojo forum: > > https://forum.xojo.com/ > _______________________________________________ Xojo forum: https://forum.xojo.com/