Step 10Remote the Mac via Applescript
Attached is my template for doing so. You can almost read AppleScript. So just take a look at the attached file.
There are three types of key events you can make from AppleScript: "'key down'", "'key code'", and '"keystroke'". Your mileage may vary, so try "'keystroke'" first...if that doesn't work try the other events, one at a time.
Open up the Script Editor application (its there on your mac somewhere) and try it out. I'm gonna make you type this part in by hand. Sorry folks. :)
Save As... each AppleScript as a type "Application". Put them next to our complied C code/app from the last step. Name each one 1.app and 2.app - one for each switch.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|


















































