• 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: keystroke "esc"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keystroke "esc"


  • Subject: Re: keystroke "esc"
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 03 Feb 2013 21:01:32 +0100

Le 03/02/2013 à 19:59, Robert Poland <email@hidden> a écrit :

>
> On Feb 3, 2013, at 11:48 AM, Michelle Steiner <email@hidden> wrote:
>
>>
>> On Feb 3, 2013, at 11:29 AM, koenig.yvan <email@hidden> wrote:
>>
>>> You are trying to issue the STRING "esc" with two modifier keys.
>>>
>>> try to issue :
>>>
>>> tell application "System Events" to keystroke character id 27 using {command down, option down}
>>>
>>> Of course, you may define the variable esc and keystroke it :
>>>
>>> set esc to character id 27
>>> # …
>>> tell application "System Events" to keystroke esc using {command down, option down}
>>
>> Would this work?
>>
>> 	keystroke escape key using {command down, option down}
>
> No, and neither did
> tell application "System Events" to keystroke escape key using {command down, option down}
>
>> -- Michelle
>
> Robert Poland - Fort Collins, CO

Quelle application souhaitez vous piloter avec votre commande ?

Il serait peut-être judicieux d'appliquer la syntaxe standard du GUI Scripting

activate application "wxyz"
tell application "System Events" to tell application process "wxyz"
keystroke character id 27 using {command down, option down}
end tell

Personnellement, j'utilise systématiquement ce protocole.

Yvan KOENIG (VALLAURIS, France) dimanche 3 février 2013 21:01:28


 _______________________________________________
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: 
 >keystroke "esc" (From: Robert Poland <email@hidden>)
 >Re: keystroke "esc" (From: "koenig.yvan" <email@hidden>)
 >Re: keystroke "esc" (From: Michelle Steiner <email@hidden>)
 >Re: keystroke "esc" (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: keystroke "esc"
  • Next by Date: Re: keystroke "esc"
  • Previous by thread: Re: keystroke "esc"
  • Next by thread: Re: keystroke "esc"
  • Index(es):
    • Date
    • Thread