PDA

View Full Version : Simple Login Script Issue




thriftinkid
Feb 3, 2009, 01:54 PM
Hey Guys,

I wrote a simple script that should open safari, take me to a website, and keystroke my name a password. It is case sensitive, so I wrote the following script. But I keep getting this error message:

syntax error:

Expected end of line but found identifier.


Any Ideas why?


For Reference:
Login Name: login\MYname
Password: 1234fake


set theURL to "http://www.mywebsite.com"

tell application "Safari" to make new document with properties {URL:theURL}
delay 5
tell application "System Events"
keystroke "login\"
keystroke "my" using shift down
keystroke "name"
keystroke tab
keystroke "1234fake"
keystroke return
end tell



kainjow
Feb 3, 2009, 03:03 PM
Maybe it needs to be "login\\"?

Ironically Microsoft explains it here (http://support.microsoft.com/kb/115815).

thriftinkid
Feb 3, 2009, 03:16 PM
That did it. Thanks a bunch.