is it possible to get a link from a website for example what i want to do is get te gameday link from mlb team websites http://yankees.com during games there is a button under the probable pitchers that says gamday, and i wanna get the link to that and it changes every game.
Here an example. Get the links of current page, pop up a list and goes to choosen link.
set LinkList to {}
tell application "Safari"
activate
set the LinkCount to (do JavaScript "document.links.length" in document 1)
repeat with i from 0 to (the LinkCount - 1)
set TheLink to (do JavaScript "document.links[" & (i as string) & "].href" in document 1)
copy TheLink to the end of LinkList
end repeat
set TheChoice to choose from list LinkList with prompt "This page has " & (count of LinkList) & " links" without multiple selections allowed and empty selection allowed
tell document 1
set URL to item 1 of TheChoice
end tell
end tell