• 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: Nigel Garvey <email@hidden>
  • Date: Sun, 13 Mar 2011 16:13:33 +0000

Tommy Bollman wrote on Sun, 13 Mar 2011 16:30:54 +0100:

>Hello. I have som problems with Getting the  block marked #!? to work,
>I'm using Safari v.5.03 and I think that the layaout of the ui-elements has
>changed some.

Hi, Tommy.

Is it necessary to use GUI Scripting?

  tell application "System Events" to set SafariOpen to (application
process "Safari" exists)

  if (SafariOpen) then
    tell application "Safari" to quit
    tell application "System Events"
      repeat while (application process "Safari" exists)
        delay 0.2
      end repeat
    end tell
  end if

  do shell script "defaults write com.apple.safari DownloadsPath \"~\""

  if (SafariOpen) then tell application "Safari" to activate


NG

 _______________________________________________
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

  • Prev by Date: 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: Fwd: Can't get the change download folder in Safari script to work - ui scripting
  • Index(es):
    • Date
    • Thread