Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gumby777

macrumors newbie
Original poster
Sep 22, 2007
8
0
I am a total noob at applescript, I have barely learned anything. I am trying to login to my e-mail through a script, I know how to get to the webpage with "tell application "Safari"
activate
open location "http://www.X.com/mail/index.bml"
end tell"
X is my webhost eg Hotmail
though from there how do i enter in my username and password through the script so that it will automatically log me in to my account??
Seeing as I am such a begginer it would be helpful if you could please post the entire script using X,A and B for webhost, username and password!

Thanks alot!!
 

mkaake

macrumors 65816
Apr 10, 2003
1,153
0
mi
To do it that way, you'll need to use UI scripting, which will be specific to the actual web page that you're trying to log in to.

It's also specific to the browser you're using, and the version of OSX that you're running.

If you can point those out to us, I'd be happy to point you in the right direction... but you'll end up having to do the grunt work yourself...
 

gumby777

macrumors newbie
Original poster
Sep 22, 2007
8
0
I am running mac os x version 10.4.10, running safari and have many e-mails but one is yahoo.ca
 

Mekanik561

macrumors newbie
Feb 10, 2007
8
0
Adjust the number of tabs as needed.

tell application "Safari"
activate
open location "http://www.blah.com"
delay 1 -- so the page can load
end tell
tell application "System Events"
tell application process "Safari"
keystroke tab
keystroke tab
keystroke "username"
keystroke tab
keystroke "password"
keystroke return
end tell
end tell
 

gumby777

macrumors newbie
Original poster
Sep 22, 2007
8
0
Thanks for the help but I had already come up with a script that did this and I thought I had done something wrong but I am thinking now that the number of tabs changes each time. I am trying to do this for http://www.fatcow.com/mail. I would appreciate if there is some way that I could click where the username is and then click the password then the login button because these tabs don't seem to be working though thanks alot for the suggestions!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.