<div dir="ltr"><span class="Apple-style-span" style="border-collapse: collapse; ">The script will do what you tell it to. If you tell it to operate in user space, it will.<div><br>I typically use a "for" command when I need to apply the same command to every item in a particular directory, such as /Users. For example:<br>
<br></div><div>for i in $( ls /Users ) ; do defaults write /Users/$i/Library/Preferences/com.manufacturer.product key type value ; done<br><br>Pardon me if my syntax isn't perfect, I don't have my script library or a Mac OS X box at hand at the moment, but this is the general idea. You can grep out stuff you don't want, or use if then else statements to avoid putting your files in places such as /Users/Shared.</div>
</span><br></div>