Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ac3320

macrumors regular
Original poster
Aug 20, 2011
127
0
CA
... When I have it set to try and auto-mount a network volume at startup.

My script looks like this:



I have an external USB hard drive attached to my AirPort Extreme and would simply like it to 1) auto-mount it when I re-boot/re-login and I happen to be on my home network and 2) when NOT on my home network, I don't want it to give me an error message like what follows; I just want it to close the application and leave me alone lol

6304269503_69a01b8f32.jpg

6304269575_a26788e84a.jpg


Hope someone on here can help me!
 
Update:

So I did some more searching, and this is what I have so far:

Screen%20Shot%202011-11-01%20at%209.06.24%20PM.png


Seems there are a bunch of ways to do it, but i'm always for "the simplest is the best" (especially since i'm a noob). I tried this and i still get the error message saying:
Screen%20Shot%202011-11-01%20at%207.32.12%20PM.png


Anyone see anything that i'm missing?
 
Finding some more good stuff out.

This page brought up the point that using the "mount volume" "handler" command will cause OS X to show the error dialog, even if my AppleScript is set to return (I have suppressed the AS error, just now the OS X one).

The last post in that page suggested using some Finder commands. So I tried the following:

Screen%20Shot%202011-11-01%20at%2010.15.36%20PM.png


(but am still getting an OS X error dialog)

Am I messing up because the "tell" 'structure' (don't know the lingo) doesn't mesh with the "try" structure...? Shooting in the dark here...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.