Posted by admin on

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.
[jp-rss-feed url=”” numitems=”7″ getdesc=”50″ ]
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.



Comment ( 1 )

  1. Macports |
    […] In June 2014, I returned to WINE and used Macports to install Wineskin. Earlier in 2014, I wrote the refresh script, which updates Macports and then refreshes the binary […]

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

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.