Scripting on the Mac

It’s UNIX, how hard can it be? I want to run some Macports uodate scripts regularly. To me the obvious programming language is bash, but I got excited and decided I want to notify that the script had run, and run OK.

There are two schemes, Growl and OSX Notification system. These both have language bindings.

See also the wikipedia Growl page and the Growl home page

So most roads lead to Applescript, and here is the Apple developer resource, and here is the man osascript page which allows applescript calls from the command line, and hence from within a script. I have bookmarked the applescript manual.

The shell call osascript takes a program file argument.

ooOOOoo

 

One thought on “Scripting on the Mac

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.