Re: Replacing Plist Files
Re: Replacing Plist Files
- Subject: Re: Replacing Plist Files
- From: Michelle Steiner <email@hidden>
- Date: Wed, 22 Feb 2006 15:11:13 -0700
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:
This email sent to email@hidden