On my old ibook with OS X 10.4 I could clear recent searches in
Safari's google search field with the following code
try
tell application "Safari"
--activate
tell application "System Events"
tell process "Safari"
tell window 1
tell tool bar 1
tell group 4
tell splitter group 1
tell text field 2
click button 1
tell button "search"
tell menu 1
click menu item "Clear Recent Searches"
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
on error
--quit
end try
No on my new MacBook Pro with 10.5.2 this code no longer works, does
nothing
If I change line 8 to "tell group 2" from "tell group 2" it does
actually drop down the menu in that Google search field, but does
nothing with it.
Anybody know how to fix this?
Thanks