Re: trying to use keystroke
Re: trying to use keystroke
- Subject: Re: trying to use keystroke
- From: kai <email@hidden>
- Date: Wed, 29 Oct 2003 23:21:19 +0000
on Wed, 29 Oct 2003 20:47:42 +0000, nick weldin wrote:
>
I'm trying to use the keystroke command to send the delete key, but
>
can't get it to work.
>
I can get it to send characters, and characters with modifiers, but
>
the syntax for types of keys is eluding me.
>
>
This script does not give a syntax error, but doesn't seem to do
>
anything when it runs.
>
>
tell application "System Events"
>
get properties
>
tell process "TextEdit"
>
set frontmost to true
>
end tell
>
keystroke delete key
>
>
end tell
Try using the ASCII equivalent for backspace, nick:
keystroke (ASCII character 8)
---
kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.