Tell system events to keystroke in Xcode?
        Posted  
        
            by user354779
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user354779
        
        
        
        Published on 2010-06-12T21:00:37Z
        Indexed on 
            2010/06/12
            23:52 UTC
        
        
        Read the original article
        Hit count: 362
        
Hello, I'm making an application, in which I need to run a code that will tell system events to keystroke a certain phrase. Like in an AppleScript, I would do:
Tell Application "System Events" to keystroke "This is a test"
I don't know how to do this from Xcode, and I would really appreciate any help. Thank you!
© Stack Overflow or respective owner