network preferences does not return VPN connections

Since 12.2, network preferences does not return VPN connections anymore. Therefore, VPN autoconnect scripts / Applications do not work anymore.

tell application "System Events"
	tell current location of network preferences
		name of every service
	end tell
end tell

Returns:

{"USB 10/100/1000 LAN", "WLAN", "iPhone-USB", "Thunderbolt Bridge"}

Has the API changed?

Replies

Has the API changed?

Not sure but I would open a bug to report this as changed behavior. Could you use:

% scutil --nc *

Instead here?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com