The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Applications (http://hintsforums.macworld.com/forumdisplay.php?f=5)
-   -   Hey anyone know how to simulate keys to an app?! (http://hintsforums.macworld.com/showthread.php?t=81618)

yalag 11-22-2007 07:17 PM

Try this

tell application "System Events"
tell application process "TextEdit"
key code 28
end tell
end tell


Does not send a key to textedit


All times are GMT -5. The time now is 10:33 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.