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




On Feb 22, 2006, at 2:34 PM, John Baltutis wrote:

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.

How about this:

tell application "System Events"
set userPath to path to users folder as string
set userNames to name of users
repeat with userName in userNames
set value of property list item "AutoOpenSafeDownloads" of property list file (userPath & userName & ":Library:Preferences:com.apple.safari.plist") to false
end repeat
end tell


-- Michelle

--
Discordians don't pray: it is far too dangerous.

_______________________________________________
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
References: 
 >Re: Replacing Plist Files (From: John Baltutis <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.