hello,
I have to create a user.js file in the Firefox profile folder, if it doesn’t already exist, but it’s protected! Now I’ve found a workaround: I create the file on the Desktop, then open the user’s profile folder and ask him to drop the file manually… Thereafter, no problem reading/writing the file in the folder.
How can I remove this protection (and then put it back) to create this text file in the protected folder? What Terminal command should I use? I’d like to avoid asking the user for the admin password, as this is 100% Xojo (no MBS for this project).
Thanks,
Dan
This is how macOS is supposed to work. You can ask your users to give you full disk access or you have to ask for the admin password. You can do that with AppleScript instead of MBS. I’ve done this before. As far as I remember the scripts had to be file based and not in memory like I do all other scripts.
Edit: see for instance Applescript "with administrator privilege… - Apple Community .
Thanks for the answer, I’ll ask for full disk access. I know how to do it with Xojo and don’t need MBS.
Dan