Passing some data between applications

I have two Mac applications:
App1.app and App2.app

From App1 I call App2 passing some arguments as follows:
Dim myApp as FolderItem = GetFolderItem(“App2.app”)
myApp.Launch(“/params:NroHC=345”)

In App2, in the Open event, I get the arguments passed as follows:
Dim str as string
str = System.Commandline

so the variable str in App2 is now “/params:NroHC=345”

This works fine with Xojo 2017r1.
But with Xojo 2022r1 is not working any more !!!

Someone have any idea in order to solve this ?
Thanks a lot.

Is it possible that FolderItem.Launch is now FolderItem.Open?

You may take a look at this “new” reported bug:
https://tracker.xojo.com/xojoinc/xojo/-/issues/72394

Thanks @Arnaud_N
It is exactly my actual problem.
I will follow the status of this bug.
Hope it solved soon
In the meantime I will use the trick of writing the parameters to be passed in a file in the launcher app and read it from this file in the target app

@AlbertoD and @Michael_W to let you know I am having the same problem that you had reported some dsys ago

1 Like