[Editor's note: The following tip has not been tested, and it makes some assumptions about your knowledge of the Terminal, so it may not be applicable to everyone. Still, I thought it was interesting enough to post...]
There is probably an easier way to do this (maybe an applescript app?), but I wanted to have my iDisk mount when the computer starts up. I wanted this in case the machine reboots at home since I serve a few things to my iDisk. iDisk uses the mount_webdav program to do its thing, but it is not clear what all the stuff means in a ps listing.
For example, when I mount an iDisk using the Finder, I see
mount_webdav -a10 http://idisk.mac.com/xyz /Volumes/xyz(xyz = iDisk user name). The -a10 is a file descriptor where keychain data comes from. The http://... is the URL to the idisk, and the /Volumes/xyz is the directory where it will be mounted. If you then use terminal and omit the -a10 you get one or more dialog boxes asking for a username/password.
^@^@^@^Cxyz^@^@^@^Fmypass^@ is control-at, or a null - zero decimal, ^C is control-c or 3 decimal, etc. (in emacs, doing control-q control-c inserts a control-c, control-q control-space inserts a null). Once you have this in a file or coming out of a program, you can just do:
cat mypass | mount_webdav -a0 http://idisk.mac.com/xyz /Volumes/xyzto mount the idisk since 0 is stdin.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020207214002198