• 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: Robert Poland <email@hidden>
  • Date: Sun, 25 Sep 2016 10:53:25 -0600
  • Z-usanet-msgid: XID625uiyq2Z0656X34

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
>>
>> 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

Robert Poland
Fort Collins, CO


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

  • Prev by Date: Re: Another Sierra(?) issue
  • Next by Date: Sierra problem with AppleScript and Mail setting signature of an email
  • Previous by thread: Re: Another Sierra(?) issue
  • Next by thread: Re: Another Sierra(?) issue
  • Index(es):
    • Date
    • Thread