• 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 15:01:57 +0200


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

key code 124 using control down # ^→

tell application "System Events" to keystroke "1" using command down

Any NEW way to implement one of them?


Robert Poland


As I use a single desktop, I can't test the first command.

Here,

tell application "System Events" to tell process "Mail"
set frontmost to true
-- key code 18 using Command down # Move to desktop 1
key code 124 using {control down} # ^→
--keystroke "1" using {command down}
end tell

behaves flawlessly.

tell application "System Events" to tell process "Mail"
set frontmost to true
-- key code 18 using Command down # Move to desktop 1
-- key code 124 using {control down} # ^→
keystroke "1" using {command down}
end tell

issue a beep but don't move the cursor.

As the 1 is reached with the shift key on French keyboards, I tried :

tell application "System Events" to tell process "Mail"
set frontmost to true
-- key code 18 using Command down # Move to desktop 1
-- key code 124 using {control down} # ^→
keystroke "1" using {command down, shift down}
end tell

but it beep too.


Yvan KOENIG running Sierra 10.12.0 in French (VALLAURIS, France) dimanche 25 septembre 2016 15:01:52









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

  • Prev by Date: Another Sierra(?) issue
  • Next by Date: Re: Another Sierra(?) issue
  • Previous by thread: Another Sierra(?) issue
  • Next by thread: Re: Another Sierra(?) issue
  • Index(es):
    • Date
    • Thread