• 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: Tommy Bollman <email@hidden>
  • Date: Sun, 13 Mar 2011 23:35:03 +0100

Hello Yvan.

Luthers script worked fine here too. And Nigels was the easiest one.
It is just as you said ... restarting... Can't have that!

A lot of stuff has happened in Snow Leopard, the display server data was updated without you
having to boot. -Maybe they follow up the good work, with some way to "kick" apps to reload preferences in Lion.

I'm really looking forward to Lion and it is not that Snow Leopard has been bad in any way.

Tommy
Den 13. mars 2011 kl. 22.29 skrev KOENIG Yvan:

> 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
>
> (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 wish to add that in the script which I posted, many instructions are embedded for educational purposes : they allow us, during the process of creation, to get the required infos about the UI elements available in the target window and sheets.
>
> They are ruled by the flag "workInProgress" but it may be more efficient to remove them or to comment them out.
>
> GUIScripting is often ugly but sometimes, there is no alternative.
> And of course it's in such cases the changes in the operating system strike.
>
> I have some of these scripts triggering dialogs whose behavior change which every major OS upgrade.
> At this time, I'm a bit anxious of what the engineers will introduce in Lion to require a new code.
>
> Yvan KOENIG (VALLAURIS, France) dimanche 13 mars 2011 22:22:32
>
>
> _______________________________________________
> 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

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