Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Applescript for...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1597 of 1611
Post > Topic >>

Applescript for Safari's Google searches

by spacemancw <spacemancw@[EMAIL PROTECTED] > Apr 20, 2008 at 10:16 AM

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




 1 Posts in Topic:
Applescript for Safari's Google searches
spacemancw <spacemancw  2008-04-20 10:16:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 0:20:21 CDT 2008.