SpawnPPC wrote: ↑Tue Oct 08, 2024 8:01 pm
Is anyone an expert in ARexx integration with Hollywood?
It's quite simple when handling external things without prodviding an ARexx port on your program, just run ARexx code from a file or string with
RunRexxScript() or send direct commands with
SendRexxCommand(), and get results in a string variable.
And maybe together with the Identify.library library?
Identify library's developer package has some ARexx examples as scripts. I guess they should work from Hollywood with
RunRexxScript() and you probably would want to change SAY lines to a return value to get results as a string in Hollywood. You'll have to learn a bit about ARexx for that.
Another option without using ARexx would be to use Identify library's ListExp shell command with
Execute() and parse its output for what you need.
But are you planning to use this solution only for AmigaOS 3.x setups, or also for next generation etc.? I think Identify library is a bit too non-consistent solution, because the latest version is basically hitting the metal of 68k machines and doesn't work properly on non-68k architectures. There are separate older versions for MorphOS and OS4, but they are scattered who knows where in Internet.
Another option to get system information would be the ShowConfig shell command, but you'd still have to create several solutions for different cases, because it isn't in standard locations between the systems and I'd guess the output could differ too, which makes parsing a bit harder. For example, the command is located in the Tools dir in OS3.x (if it's installed at all from the Storage disk), in the Utilities dir in OS4, and in C: in MorphOS, and so on.. you'll have to research about all possible options.