Jacques showed me how you can select different pages in a google search with this:
set myPage to 4
set Google_Page_link to ((ASCII character 10) & myPage) as string
tell application "Safari"
set the link_count to (do JavaScript "document.links.length" in document 1)
repeat with i from 0 to (the link_count - 1)
if (do JavaScript "document.links[" & (i as string) & "].text" in document 1) is Google_Page_link then
set URL of document 1 to (do JavaScript "document.links[" & (i as string) & "].href" in document 1) -- go to this page
exit repeat
end if
end repeat
end tell
Is there a way to get it to select a specified link within the page of the search results? Lets say page 1 has 10 results, can applescript select open the third?