Le 25 sept. 2016 à 18:53, Robert Poland < email@hidden> a écrit :
Yvan, Got this to work. tell application "System Events" set x to 18 repeat with x from x to x + 1 key code x using {control down} display dialog x giving up after 1 end repeat end tell Kind of dumb workaround... All parts seem to be required. So far I haven't found a key code that works for the right arrow. 124 doesn't work. On Sep 25, 2016, at 7:01:AM, Yvan KOENIG <email@hidden> wrote:
Le 25 sept. 2016 à 14:44, Robert Poland <email@hidden> a écrit :
Hi,
These commands NOW fail;
tell application "System Events" to key code 18 using Command down # Move to desktop 1
What a mess !
In your original message you asked about key code 18 using Command down, now you write about key code 18 using Control down It's difficult to know what you are really doing.
I repeat that here, keycode 124 using {command down} behaves flawlessly.
Which is the process at front when you issue your strokes ?
Here I found no app in which command + 1 does something valuable when pressed by hand.
In Pages, TextEdit, Mail, it just beep. In Script Editor it reveal or hide the Description area at the bottom of the window. It's only in the Finder that it seems to be really useful, alas, issuing it by script just beep.
Yvan KOENIG running Sierra 10.12.0 in French (VALLAURIS, France) dimanche 25 septembre 2016 20:38:19
|