Let me start out by saying that I am brand new to using applescript. I am trying to write a real simple apple script that fills out my web-based VPN login screen from work. The problem is that my user id on the web login page is formatted “domain\username”. My problem is that although the variable can be entered in the apple script editor using // for the backslash, I lose the backslash when it places the username in the correct field on the web page. It always outputs “domainusername” instead of “domain\username”. Any help would be greatly appreciated.
tell application “Safari”
open location “https://xxxx.xxxx.xxxx”
set fullUserName1 to “domain\username” as text
set password1 to “password”
Thank you chrys. That is exactly what I needed:)