3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Mac OS Foot Switch from a Guitar Amp Pedal.

Step 10Remote the Mac via Applescript

Remote the Mac via Applescript
«
  • arduino-applescript.png
  • applescript-saveas.png
So we need to write two AppleScripts. These will open the app we want and type they keyboard (shortcut) we want.

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 StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
3
Author:aymans
I'm a research scientist at Yahoo! I like making stuff.