• 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: Can't get the change download folder in Safari script to work - ui scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get the change download folder in Safari script to work - ui scripting


  • Subject: Re: Can't get the change download folder in Safari script to work - ui scripting
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 13 Mar 2011 17:35:44 -0500

On Mar 13, 2011, at 4:29 PM, KOENIG Yvan wrote:

I tested the Luther's script.

(1) On my machine running 10.6.6 in French, I was forced to edit two lines this way:

set prefsFolder to (path to preferences folder from user domain) as text
tell application "Finder" to set prefsFile to (file "com.apple.Safari.plist" of folder prefsFolder) as alias

Yes, I found that, too. folder prefsFolder is needed, not just prefsFolder. Using as text is optional.

(2) it changes the value in the preferences file but it doesn't pass the value to the running app.
Nigel's one does quite the same job but, as it quits Safari, then restart it, the app take benefit of the change but it seems that quitting isn't an option for Tommy.

I must have missed something on my first test. I've tried too, but can't find a way to pass the change to Safari without doing: quit --> change --> activate.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Can't get the change download folder in Safari script to work - ui scripting
      • From: Tommy Bollman <email@hidden>
References: 
 >Can't get the change download folder in Safari script to work - ui scripting (From: Tommy Bollman <email@hidden>)
 >Re: Can't get the change download folder in Safari script to work - ui scripting (From: Luther Fuller <email@hidden>)
 >Re: Can't get the change download folder in Safari script to work - ui scripting (From: Tommy Bollman <email@hidden>)
 >Re: Can't get the change download folder in Safari script to work - ui scripting (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Can't get the change download folder in Safari script to work - ui scripting
  • Next by Date: Re: Can't get the change download folder in Safari script to work - ui scripting
  • Previous by thread: Re: Can't get the change download folder in Safari script to work - ui scripting
  • Next by thread: Re: Can't get the change download folder in Safari script to work - ui scripting
  • Index(es):
    • Date
    • Thread