# Get ( SystemPlatform ) Speculation

**URL:** <https://the.fmsoup.org/t/get-systemplatform-speculation/1154>\
**Category:** Lounge (Discussions)\
**Tags:** scripting\
**Created:** [July 16, 2020, 6:46am UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154 "2020-07-16T06:46:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyHibbs](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/andyhibbs/32/3089_2.png) [@AndyHibbs](https://the.fmsoup.org/u/AndyHibbs)\
**Post date:** [July 16, 2020, 6:46am UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/1 "2020-07-16T06:46:43Z")

</div>

While scripting today I used Get ( SystemPlatform) to check for a Mac or Windows running the file, which led me to wonder what impact the new Apple Silicon-based Macs will have on our legacy coding.

Currently Intel-based Macs return 1 and back in the time, PowerPC-based Macs returned -1. Are we going to have a new number, and if so, how many of our systems will be affected? We usually check for Windows at -2 and occasionally \<0, but with IOS returning 3 and WebDirect 4, if FileMaker added another negative number, the \<0 would turn out to be a bad decision.

Thankfully, one of the main reasons for doing this was window handling in the days of MDI FileMaker, which we've been phasing out (but not yet totally) as we migrate customers to the later SDI versions. One of these has required 2-years rebuilding from multi-file to separated solution and is now getting close for testing. I'm not sure many people understood just what a big impact the transition from MDI to SDI was for Windows-based systems.

Food for thought and maybe we'll get a clue in early August.

Regards  
Andy

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [July 16, 2020, 7:31am UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/2 "2020-07-16T07:31:15Z")

</div>

FileMaker could pick any value and return it.

And for [MBS FileMaker Plugin](https://www.monkeybreadsoftware.com/filemaker/), we'll add [SystemInfo.isARM](https://www.mbsplugins.eu/SystemInfoisARM.shtml) function.

---

<div class="post-metadata">

**Author:** ![AndyHibbs](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/andyhibbs/32/3089_2.png) [@AndyHibbs](https://the.fmsoup.org/u/AndyHibbs)\
**Post date:** [July 16, 2020, 7:36am UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/3 "2020-07-16T07:36:04Z")

</div>

Christian, not ‘.AS’ or ‘SoC’? Would really worry if we got ‘Apple Releases Silcon Early’ - LOL!

---

<div class="post-metadata">

**Author:** ![AndyHibbs](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/andyhibbs/32/3089_2.png) [@AndyHibbs](https://the.fmsoup.org/u/AndyHibbs)\
**Post date:** [July 16, 2020, 7:37am UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/4 "2020-07-16T07:37:08Z")

</div>

Actually, I would find ‘.isAS’ quite amusing!

---

<div class="post-metadata">

**Author:** ![jormond](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jormond](https://the.fmsoup.org/u/jormond)\
**Post date:** [July 16, 2020, 3:25pm UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/5 "2020-07-16T15:25:42Z")

</div>

They have added a new number. It will be interesting to see what they do.  
`5 = Linux`

This is an area where using a CF, or a modular Script as a Function, for this is ideal. A single place to change it all.

I recently was bitten by something similar. I centralized the function/action into a single script, and replaced all 400+ instances of that code to call back to this single script ( Email script ). Finished that project about 2 weeks ago. This week, we had a problem with a vendor and needed to swap with SMTP server we were sending from. It was 10 sec change, and everything was still working. I can't even quantify fully how many sales and headaches that actually saved us.

---

<div class="post-metadata">

**Author:** ![steve\_ssh](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steve_ssh/32/160_2.png) [@steve\_ssh](https://the.fmsoup.org/u/steve_ssh)\
**Post date:** [July 16, 2020, 4:15pm UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/6 "2020-07-16T16:15:15Z")

</div>

> [@AndyHibbs](#):
>
> Currently Intel-based Macs return 1 and back in the time, PowerPC-based Macs returned -1. Are we going to have a new number, and if so, how many of our systems will be affected?

The FMP calc engine will be updated to support complex arithmetic, and the return value for the new Macs will be: ` i`😀

---

<div class="post-metadata">

**Author:** ![Torsten](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/torsten/32/1574_2.png) [@Torsten](https://the.fmsoup.org/u/Torsten)\
**Post date:** [July 16, 2020, 4:51pm UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/7 "2020-07-16T16:51:18Z")

</div>

Ah, they haven't added 42 yet?

---

<div class="post-metadata">

**Author:** ![AndyHibbs](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/andyhibbs/32/3089_2.png) [@AndyHibbs](https://the.fmsoup.org/u/AndyHibbs)\
**Post date:** [July 16, 2020, 5:02pm UTC](https://the.fmsoup.org/t/get-systemplatform-speculation/1154/8 "2020-07-16T17:02:25Z")

</div>

Torsten, that is being held in reserve for Deep Thought
