Mac - Computer Name - Omnis 11.1 - OS Sequoia
Nigel Hughes
nigel at rnamh.co.uk
Thu Oct 3 13:52:06 UTC 2024
Michael
I use an AppleScript in 10.22 while AppleScript still works
Begin text block
Text:computer name of (system info)
Get text block lvScript
Do $runapplescript(lvScript,lcComputerName)
> On 3 Oct 2024, at 13:48, Michael Mantkowski <michaelj at clientrax.com> wrote:
>
> 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
> *********************************************************************
>
>
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list