Re: Can't get the change download folder in Safari script to work - ui scripting
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