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: Tommy Bollman <email@hidden>
- Date: Sun, 13 Mar 2011 23:52:46 +0100
Hello.
I did try your script Fuller, maybe I should have checked that the values where actually written
to the property file, but I had already used a defaults command which turned out not to work
so ... I didn't check that. (defaults works allways).
Tommy
Den 13. mars 2011 kl. 23.35 skrev Luther Fuller:
> 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
Best regards
Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
If an idea can survive a bureaucratic review
and be implemented it wasn't worth doing.
_______________________________________________
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