So, I’d previously written an app in 2018r3. It was designed to operate as a proxy and launch another application via otherAppFolderItem.launch("-p param").
Admittedly, I haven’t touched it since. Also, admittedly, my current Xojo version is only 2021r3.1.
Now, for some reason, otherAppFolderItem.launch (as well as open) are disregarding the passed params and the receiving app never gets them. When I output what’s received, it’s only the name of the application itself.
True, but I can’t build the target app without a license. At this point I have no idea whether launch or system.commandline is at fault so I’d need both sides. Or am I mistaken?
Public Function gCallTextAreaOpenFolderitem(TA as TextArea, f as FolderItem) As String
Dim TIS as TextInputStream
Dim TheFileContents as string
TIS = TextInputStream.Open(f)
TheFileContents = TIS.Readall
Return TheFileContents
End Function
Thanks for the input, that’s the “target” dialog simply showing what it was passed. The problem is that it’s actually not being passed in the stated combinations of Xojo.
I’ve also just verified that, at it’s not getting sent in 2023 either.
I’ve tried your 2 projects file (which indeed don’t work). Then, I built the 2nd app (the receiver) and launched it using the Terminal:
/Users/me/Downloads/XojoLaunchTest/Builds\ -\ TargetApp/macOS\ Universal/TargetApp.app/Contents/MacOS/TargetApp -test
And the whole string was correctly passed. So it looks like the problem is at the launch side.
I’m sorry, I thought it was obvious by look at this answer:
I guess I have to be more clear the next time by adding something like this after:
“Target works correctly is the Launcher that only works with Xojo2018 and stopped working with Xojo2019(didn’t test r1 or r2) and later”