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

 

Related Posts

  • Upgrading MacOS X And on to 10.9 There was a rumour that it was best to stop at 10.8, Mountain Lion but […]
  • Job Control It seems that Mac have begun to decrement cron and recommend the use of launchd for job […]
  • Mavericks a.k.a. MacOS X.9 I said in my article on upgrading MacOS that this was easy to do, it […]
  • EXIF and MacOS X I have listened to Stop 43, and the British Journal of Photography I have read what Tim […]
  • Mac OS, about upgrades I need to upgrade the Mac. The O/S version is getting a bit long in the tooth. I have […]

One thought on “Scripting on the Mac

Leave a Reply

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