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:
- 1 User Editable
- 2 parts IP Detection
- 2 parts Share Mounting
- 2 parts Share Indexing
Throw it all together in an AppleScript, press liquify.
But what does it do, really? It does this:
- Detects your WAN IP.
- Asks you what you want to do, Mount and Index, Just Mount, Nothing (as well as conveniently showing your IP).
- Mounts the shares associated with your IP
- 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