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: 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