So I made this nifty little script for AppleScript. For those of you who don’t know what AppleScript is;
“AppleScript is a scripting language created by Apple Inc. and built into Macintosh operating systems sinceSystem 7. The term “AppleScript” may refer to the scripting system itself, or to an individual script written in the AppleScript language.” -Wikipedia
Pretty neat stuff! Anyway, this script I created, assuming you meat the requirements, will compile and run computer programs. Currently it supports Python (.py), C++ (.cpp), and JAVA (.java).
– Mac with OSX Mavericks
– AppleScript Editor
– Xcode’s plugin GCC (uses the g++ command for c++ scripts)
– Maverick’s Terminal app
After downloading the script, you can activate it in 3 ways.
1) Double click on this .app and select your program file
2) Right click on your program file and select “open with” and find this .app
3) Drag your program file onto this .app
The source can be found in this pastebin (you can copy and paste the source into an AppleScript Editor if need be). You can download the “Run Program.app.zip” from my dropbox here, just make sure to unzip to get the .app first.