I"m using the following partial script to log onto a website.
Sometimes it works and sometimes the data that is supposed to go into a fill in box types into the url location of the browser.
How can I make this script more stable?
tell application "Safari"
activate
open location site_url
-- wait until page loaded
end tell
tell application "System Events"
keystroke tab & conname
endtell