AppleScript; AutoRunScript

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).

Program Requirements:
– 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” from my dropbox here, just make sure to unzip to get the .app first.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s