• 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
Re: Applescript in the terminal (fwd)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript in the terminal (fwd)


  • Subject: Re: Applescript in the terminal (fwd)
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 21 Apr 2013 11:33:11 +0200


Le 21/04/2013 à 09:50, emile.a.schwarz <email@hidden> a écrit :

>Google is your friend

Funny, I say that everytime !

The given link talks about key codes. As far as I recall, key code is the hardware 'address' of a key. If I take the 'a' letter, it will have one Key Code for an US (standard) keyboard, another for my French (standard) keyboard and I do not talk about Dvorak or every other specific keyboards (countries, hardware manufacturers).

 

Building a script based on Key Code (execpted if it is for your own use) is a bit hazardous IMHO.


It depends of which key is supposed to be triggered.

These one are common to different keyboards :


 delete
51
 down
125
 enter
52
 esc
53
 left
123
 return
36
 right
124
 space
49
 tab
48
 up
126


Surprising feature, the codes for Function keys aren't the same on different physical keyboards.

On my French keyboard, F2 is supposed to enhance luminosity but key code 120 just issue a bip.

Yvan KOENIG (VALLAURIS, France) dimanche 21 avril 2013 11:33:07



 _______________________________________________
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

References: 
 >Re: Applescript in the terminal (fwd) (From: "emile.a.schwarz" <email@hidden>)

  • Prev by Date: Re: Applescript in the terminal (fwd)
  • Next by Date: Re: Applescript in the terminal (fwd)
  • Previous by thread: Re: Applescript in the terminal (fwd)
  • Next by thread: Re: Applescript in the terminal (fwd)
  • Index(es):
    • Date
    • Thread