Im after a script that checks if a plist is locked or not, and gives you the option to lock or unlock it…
ive looked around and found this script from glennmcdonald on checking certain keys in plists but when i tried to edit to to check if its locked it fails (unsure if locked is a key within a plist?!?)
tell application "system events" to return the value of property list item "locked" of property list file ((path of preferences folder) & "com.apple.dock.plist")
Thats all i have so far… but as that doesnt work and i cant get my head around how i would get it to work… im stuck, any ideas?
I keep thinking that a better solution might be to have a logout hook that resets the user to “standard” settings, rather than trying to prevent the user from messing with a plist file in his or her own user folder.