• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Replacing Plist Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Replacing Plist Files (From: John Baltutis <email@hidden>)

  • Prev by Date: Re: Replacing Plist Files
  • Next by Date: different behavior between debug and release builds
  • Previous by thread: Re: Replacing Plist Files
  • Next by thread: Re: Replacing Plist Files
  • Index(es):
    • Date
    • Thread