Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing Plist Files



If you've upgraded to 10.4.5 you don't have to worry about it. OS X 10.4.5 fully updated along with Safari Version 2.0.3 (417.8) are immune to that particular attack.

Adam

On 2/22/06, John Baltutis <email@hidden> wrote:
On 02/22/06, email@hidden wrote:
>
> Can AppleScript be used to find and replace all copies of a plist file?  I
> would like to disable the option to open safe files after downloading in
> Safari.

AFAIK, AS could be used to find and delete the
~/Library/Preferences/com.apple.safari.plist files from each user's home
directory; however, it can't replace them. Only relaunching Safari can do that.
But, this is taking a sledge-hammer approach to the problem, since deleting the
plists reverts all settings back to their defaults. If you're trying to protect
users from the so-called worms floating about, then, IMHO, your solution will
just enrage the users when they find out that they lost their settings. A
better approach would be to change the specific setting in the plist files. Try
something like:

search each user's /Library/Preferences/ folder for the com.apple.safari.plist
file, collect those paths into a list, iterate on each, and execute this:

do shell script "defaults write <individual path to com.apple.safari plist
file> AutoOpenSafeDownloads 0"

Details are left as an exercise.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      ( email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



--
Some minds remain open long enough for a truth to both enter and leave without processing.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.