• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Keystroking Terminal.app with case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Keystroking Terminal.app with case
      • From: "Gary (Lists)" <email@hidden>
  • Prev by Date: Re: Check if app exists
  • Next by Date: Re: Keystroking Terminal.app with case
  • Previous by thread: Re: Scripting Excel: sample code?
  • Next by thread: Re: Keystroking Terminal.app with case
  • Index(es):
    • Date
    • Thread