Re: Keystroke problems
Re: Keystroke problems
- Subject: Re: Keystroke problems
- From: Mr Tea <email@hidden>
- Date: Tue, 23 Dec 2003 12:25:31 +0000
On 23 Dec 2003, at 11.09 am, John Cochrane wrote:
tell application "TextEdit"
activate
make new document at beginning
end tell
delay 1
tell application "System Events"
tell process "TextEdit"
keystroke "a" with command down
end tell
end tell
Compiling stops at the "with command down" statement...
Try this instead...
tell application "System Events"
tell process "TextEdit"
keystroke "a" using command down
end tell
end tell
That works (although I'm not sure what emulating the 'select all'
keyboard shortcut achieves in a new, blank TextEdit document).
Regards,
Nick
(pp Mr Tea)
--
Brew of the day: festive apple'n'cinnamon spiced tea
_______________________________________________
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.