writing file in protected folder

Hello everybody,

i need to write a file in SpecialFolder.SharedPreferences on OSX with Xojo.
This Folder is protected.
So i need the user approval via the OSX User Password Windows.

How i can do this with Xojo ?

Thanks

https://www.monkeybreadsoftware.net/class-authorizationmbs.shtml . There is also a newer class but I forgot the name.

Thanks a lot !