The Ultimate Business Machine - Archives
List of Categories : Commentary * Database * Singapore * Technology * Travel *
Fri 07 Mar 2003
AppleScript Studio and the Unix Shell
Category : Technology/applescriptstudio.txt
The first time I set up OS X's mail server, it took me a whole evening. I've done it about four times in all, so far, and each time I'm getting faster. Now I think it's possible to write an installer that will do it in two minutes. But I'm trying to avoid having the user edit SendMail's config files by hand. If anything can go wrong, it will go wrong here.
I'm experimenting with using AppleScript Studio to create an interface to collect the necessary configuration parameters from the user, e.g., the domain name and the name of the user who will be the postmaster. The hard part was the writing of the Unix shell script to do all the installation and that is mostly done. Now I just have to link the two together. Then I'll have a totally Mac-like SendMail installer. Mail services in under two minutes.
AppleScript Studio is proving to be really fun. I can see a lot of use for this, e.g., installing an accounting system written in Cocoa that needs to link to a MySQL backend. You can drive things at the Unix level invisibly while keeping the why/are/we/back/in/dos people happy.
Put your Mac to Work