The LinkedResources Applescript Factory

Web-based Command "Line" Interface for MacOS

Unix was developed for machines; thus was created the command line interface.

The Mac was developed for people; thus was created the Graphical User Interface (GUI).

The Mac GUI is the best (at least until MacOS X arrives) for "face time" with a computer. But it does not easily lend itself to remote management of other Macs. There are various methods to get beyond this limitation (see below). Here's my attempt at it. If you like it, send me a buck or two.

Here's what you need:

To use this tool

  1. Put my 2 files in the same folder where your server can serve them.
  2. Put the 2 Scripting Additions in the scripting additions folder (in the System Folder, NOT the extensions folder) of the remote Mac.
  3. Restart the remote Mac (is this needed? I'm not sure)
  4. Access the web page "commandline.html" from your browser.
  5. Paste a (short) Applescript into the top text area.
  6. Enter your password
  7. Click the button.

Obviously, you will want to carefully craft your script. Your script will be automatically wrapped in a try block and the CGI will report back whether it ran succesfully or if not, the error message.

I have used this successfully to move, duplicate, delete, and rename files, launch applications, etc. There really is no reason you can't run any script remotely which could be run locally, with the exception that you can't use display dialog or anything requiring face to face user interaction.

Other remote administration tools for the Mac