System Events Keystroke
System Events Keystroke
- Subject: System Events Keystroke
- From: John Dulion <email@hidden>
- Date: Tue, 20 Feb 2007 11:34:13 -0500
- Thread-topic: System Events Keystroke
Title: System Events Keystroke
Hello,
I cannot get Text Edit to save. I am closing the window after my text is written and then I paste in my text to name file. I then need it to "click" the save button or the return key. Any help would be appreciated.
tell application "TextEdit" to activate
tell application "System Events"
tell process "TextEdit" to keystroke "w" using command down
delay 1
keystroke return
delay 2
tell process "TextEdit" to keystroke "v" using command down
delay 2
tell process "TextEdit" to keystroke return —this is the action that does not happen.
end tell
Thanks,
John
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden