Mac - Computer Name - Omnis 11.1 - OS Sequoia

Michael Mantkowski michaelj at clientrax.com
Thu Oct 3 12:48:08 UTC 2024


We upgraded one of our Mac clients to Omnis 11.1 yesterday after they had upgraded their Mac OS to Sequoia and Omnis 4.3.2.1 would no longer work for them.  

Running into an issue with getting the computer name of the workstation they are on. We had been using the code below to find it. It no longer seems to work and the built in Omnis getenv() also does not work.

Anyone know how to do this with newer Mac OS version?


f inMac
  Do code method CodeClass/RunMacShell ("grep '<key>ComputerName</key>' /Library/Preferences/SystemConfiguration/preferences.plist -A 1 | grep '<string>' ") Returns lvReturn
  Calculate lvReturn as mid(lvReturn,pos('>',lvReturn)+1)
  Calculate ctComputerName as mid(lvReturn,1,pos('<',lvReturn)-1)
Else
  Calculate ctComputerName as getenv("COMPUTERNAME")
End If


This is all used to eventually get the IP Address of the local workstation and the database server so that we can Ping it for online verification. Since the above fails the Ping Fails as well. I ended up having to disable the whole server verification to get them running last night.


*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************

 



More information about the omnisdev-en mailing list