Re: keystroke using ... { } ... in PowerMail
Re: keystroke using ... { } ... in PowerMail
- Subject: Re: keystroke using ... { } ... in PowerMail
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 25 Sep 2004 06:18:57 -0400
on 2004-09-24 10:02 PM, email@hidden at email@hidden
wrote:
>> Why doesn't this work?
>>
>> tell application "System Events"
>> tell process "PowerMail"
>> run
>> keystroke "L" using {control down, command down}
>> end tell
>> end tell
>
> Please go to '<http://applescript.250free.com/powermail.html#top>'.
That link shows HOW to make it work, but it doesn't answer your question WHY
your script doesn't work.
When you use the 'keystroke' command to send an uppercase letter, System
Events thinks you are sending the lowercase letter with the Shift key down.
PowerMail doesn't know what to do with 'keystroke "l" using {shift down,
control down, command down}', so nothing happens. As the example script on
the PowerMail Web site indicates, just change your script so it sends a
lowercase letter, and it should work.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden