OK, so I commented on an old thread but do not want to take that thread up anymore.
So this user created a command to disable pop-up blocker in Safari. However, it is not working for me, so I decided to test an older version which is...
"defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically 1"
1 meaning disabled, 0 meaning enabled. This works great. However, I can't get it to work in JSS as a script running through a policy.
I need to know how to apply this to a user-based level. I know JSS uses $3 to indicate the currently logged in user, but i'm unsure how to indicate this in the script so the command will apply to the currently logged in user and not globally. Any ideas?
Side note: it would really be better if I could have the script to write only if the file in plist is set to 0, but if at 1 make no change.