i's becoming a's
i's becoming a's
- Subject: i's becoming a's
- From: Steve Roy <email@hidden>
- Date: Fri, 12 Mar 2004 12:50:19 -0500
At the MUG meeting last night I created a script to show someone how to do it,
and I found something weird with GUI scripting. First, here's the script.
tell application "Safari"
activate
make new document with properties {URL:"
https://accesd.desjardins.com/"}
end tell
delay 2
tell application "System Events"
tell process "Safari"
keystroke "foo" -- Account number
keystroke tab
keystroke "bar" -- Password
keystroke return
end tell
end tell
The weird thing is that if the string passed for the account number contained an
'i', it showed up in the Safari text field as an 'a'. We didn't try all
characters, but other characters we tried behaved correctly.
That was on an iMac. I had my laptop with me and it worked fine on my laptop. I
checked the AppleScript versions and both machines had 1.9.3. I wanted to take
note of the OS version on the iMac but forgot to do it before leaving. My laptop
is running 10.3.2, and the iMac was running 10.3.something.
Is this a known bug?
As a test, I modified the script to write "i" in TextEdit instead, and I got the
same result, so it's definitely a bug in GUI Scripting/AppleScript/OS.
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.