Thanks mwieder for your response.
I've had a look at that file and can't figure out what I can do with the openvpnstart command. I am a novice with code (but trying hard). I've tried a few things unsuccessfully, so I suspect I will need to include some AppleScript into my stack?
Tunnelblick does keep its main plist in User/Library/Preferences. If in Tunnelblick I select a VPN profile to connect when Tunnelblick starts, that command is included in that plist. The plist is updated if I select a different profile.
But, if I select a VPN profile to connect on computer start, Tunnelblick puts a new plist in Library/LaunchDaemons.
My thinking is that I could generate a plist for each profile to connect on open, and hijack them from their folders - put them where I want and direct my app to them? But how does one utilise a plist - is it some kind of Apple Event?
Or is it better to somehow use the openvpnstart command?
Scratching my head here…
