Fair enough: it wasn’t speedy, but how often are you doing it? A single regex 
to extract the stuff was pretty cool, though, I thought (although the $ in the 
middle was superfluous). I do like them.

Jeremy


Jeremy Roussak
j...@mac.com



> On 15 Jul 2017, at 16:49, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Jeremy,
> 
> Thanks for the code. I started out using system_profiler but found it was too 
> slow for my purposes. I ended up using sysctl and sw_vers on the Mac side 
> which got me what I wanted and it very fast.
> 
> Thanks.
> 
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> <can...@synergyfarmsolutions.com>
> <www.synergyfarmsolutions.com>
> 
> 
>> On Jul 14, 2017, at 10:04 AM, Jeremy Roussak via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> This seems to work, on my MacBook at any rate. Can’t help with Windows.
>> 
>> C_TEXT($in;$out;$pattern;$model;$swVersion)
>> LAUNCH EXTERNAL PROCESS("/usr/sbin/system_profiler SPHardwareDataType 
>> SPSoftwareDataType";$in;$out)
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to