Simple Login Script Issue

Discussion in 'Mac Programming' started by thriftinkid, Feb 3, 2009.

  1. thriftinkid macrumors regular

    Mar 24, 2008
    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:
    Password: 1234fake

    set theURL to ""
    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
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Maybe it needs to be "login\\"?

    Ironically Microsoft explains it here.
  3. thriftinkid thread starter macrumors regular

    Mar 24, 2008

Share This Page