Разобрался, используя этот бит кода, благодаря исключительно http://www.cubemg.com/how-to-extract-information-from-a-website-using-applescript/:
to getInput(theClass, num)
tell application "Safari"
set input to do JavaScript "document.getElementsByClassName('" & theClass & "')[" & num & "].innerHTML;" in document 1 -- uses JavaScript to set the variable input to the information we want
return input
end tell
end getInput
set urlBPM to getInput("title", 3)