An AppleScript to do IP-based mounting and indexing

Feb 14, '07 07:30:01AM

Contributed by: loadedsith

Ingredients for making a magic auto-mounter:

Throw it all together in an AppleScript, press liquify.

But what does it do, really? It does this:
  1. Detects your WAN IP.
  2. Asks you what you want to do, Mount and Index, Just Mount, Nothing (as well as conveniently showing your IP).
  3. Mounts the shares associated with your IP
  4. Runs mdutil -i on the shares (Indexing them if you wanted to).
You will have to enter your password to index the new shares.

[robg adds: I haven't tested this one.]

Comments (7)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20070211213924387