Checking the host OS
sundown at pacifier.com
Sun Sep 1 08:03:25 EDT 2019
On OS X in the terminal you can type: sysctl hw.machine
and it will display the machine architecture.
I don’t use the shell commands much but it looks like you
can get the info without compiling code by using the code
put shell( "sysctl hw.machine" ) into pData
> On Aug 30, 2019, at 8:41 PM, Devin Asay via use-livecode <use-livecode at lists.runrev.com> wrote:
> On Aug 30, 2019, at 9:10 PM, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> On 8/30/19 12:22 PM, Devin Asay via use-livecode wrote:
>>> Now that we can build both 32 and 64 bit applications for Windows, it’s important to be able to tell whether the host OS is 32 or 64 bit.
>> Why? If the 64-bit application won't run on the 32-bit system you won't get as far as your scripted test. Am I missing something?
> No, I’m just toying with the idea of having a 32-bit launcher that would examine the host OS, then launch the proper executable based on whether it is 32 or 64 bit. Sort of like a poor man’s universal app like we used to create for MacOS. It’s possible I’m use way overthinking this.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode