• 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: Another Sierra(?) issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Sierra(?) issue


  • Subject: Re: Another Sierra(?) issue
  • From: Yvan KOENIG <email@hidden>
  • Date: Sun, 25 Sep 2016 20:39:43 +0200


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







 _______________________________________________
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: 
 >Another Sierra(?) issue (From: Robert Poland <email@hidden>)
 >Re: Another Sierra(?) issue (From: Yvan KOENIG <email@hidden>)
 >Re: Another Sierra(?) issue (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Sierra problem with AppleScript and Mail setting signature of an email
  • Next by Date: Re: Changing Safari's Homepage with a little intellegence
  • Previous by thread: Re: Another Sierra(?) issue
  • Next by thread: Sierra problem with AppleScript and Mail setting signature of an email
  • Index(es):
    • Date
    • Thread