Keystroking Terminal.app with case
Keystroking Terminal.app with case
- Subject: Keystroking Terminal.app with case
- From: Doug McNutt <email@hidden>
- Date: Sat, 22 Sep 2007 14:57:20 -0600
tell application "Terminal"
activate
end tell
tell application "System Events"
keystroke "N"
keystroke "o"
keystroke return
end tell
That has worked for years in OS 10.3.9
It failed the other day when a familiar problem with my ADB keyboard on a USB port got its caps lock key backward. It will have the LED locked indicator backwards until the OS neXt gods change their minds. It usually takes a week's worth of nightime shutdowns.
But does System Events's keystroke command care about the status of the caps lock key? When I say keystroke "o" how can it possibly imagine that I must mean "O"?
When caps lock is truly OFF and without holding down shift I get the "N" and the "o" properly.
Is Terminal.app shouting? That's bad netiquette.
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden