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.
Unfortunately I havent got a decent app for ui-scripting, and wonders if somebody could help me out.
It seems to me that there are some sheets involved in the troublesome part.
-- "Set Safari's download folder via script for private browsing - Mac OS X Hints"
set_download_folder("~")
on set_download_folder(dlFolder) activate application "Safari" tell application "System Events" to tell application process "Safari"
click menu item "Preferences?" of menu 1 of menu bar item "Safari" of menu bar 1 click button "General" of tool bar 1 of window 1 tell pop up button 3 of group 1 of group 1 of window "General" click click menu item "Other?" of menu 1 end tell
keystroke "g" using {shift down, command down} delay 2 -- NOTE: This value should be increased if the new download location doesn't appear in the Go To Folder dialog (* #!? *)
tell window "Go To Folder" set value of text field 1 to dlFolder click button "Go" end tell (* #!? *) click button "Select" of sheet 1 of window "General" click button 1 of window "General" end tell end set_download_folder
Best regards
Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
If an idea can survive a bureaucratic review
and be implemented it wasn't worth doing.
|