Re: keystroke "esc"
Re: keystroke "esc"
- Subject: Re: keystroke "esc"
- From: Robert Poland <email@hidden>
- Date: Sun, 03 Feb 2013 11:40:40 -0700
Thanks Yvan,
Neither had the desired effect.
tell application "System Events"
set esc to character id 27
tell application "System Events" to keystroke esc using {command down, option down}
delay 4
tell application "System Events" to keystroke character id 27 using {command down, option down}
beep
end tell
On Feb 3, 2013, at 11:29 AM, "koenig.yvan" <email@hidden> wrote:
>
> Le 03/02/2013 à 19:03, Robert Poland <email@hidden> a écrit :
>
>> Hi,
>>
>> I wonder why the following doesn't work?
>>
>> Is there another way?
>>
>> tell application "System Events"
>> tell application "System Events" to keystroke "esc" using {command down, option down}
>> delay 4
>> beep
>> end tell
>>
>> TIA,
>
> Hello
>
> 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}
>
>
> Yvan KOENIG (VALLAURIS, France) dimanche 3 février 2013 19:29:37
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