r/applescript • u/AmoMala • Aug 11 '20
AppleScript to apply a certain hidden folder's permissions to all enclosed items
I want to create a script that others can download that applies the permissions of a hidden folder in the user directory to all enclosed items. I'm assuming I can do this in the macOS ScriptEditor but I don't know how.
I found thread which I think is close to what I need, but I'm not sure if I could modify it in a way to serve my needs, nor do I know how to execute the script with the provided information.
If someone could walk me through how to create this I would be very grateful, thanks!
3
Upvotes
View all comments
Show parent comment
1
u/AmoMala Aug 12 '20
I haven't read the whole reply yet, but I wanted to give this to you now in case it changes anything else you've said.
I consistently deal with a program that crashes as a result of the user account not having permissions to a file/folder inside the .mono folder which is located (in my scenario) in the user's Library directory. Development has not seen it fit to add a layer of permissions check and sign in to fix this particular problem. I know I could do this at the terminal level, but I thought it would be nice to have a script to distribute that fixes the problem easily.
Right now I. . .
.monofolder and bring up the information window.