Who wants to click through the network everytime?
September 15, 2006 6:37 AM   Subscribe

Is there an easy way to automatically mount a remote PC drive on my Mac desktop on login

Everything is fine with the sharing setup, I can access it no problem. My question more relates to automating the process of mounting the remote drive when I startup. Similar to mapping a drive in windows.

All my data is on an external drive attached to a Windows box and I'd like to transfer my library to iTunes on the Mac, but keep the drive where it is.

Using MacOS 10.3.9. Defintely not knowledgeable with AppleScript. I feel like I did this easily in OS9, but can't figure it out.
posted by Yukon to Computers & Internet (5 answers total)
 
Mount the network volume.

Control Panel -> Accounts -> Login Items.

Hit the "+" button to add an item. Select the network volume. Click "Add."
posted by buxtonbluecat at 6:43 AM on September 15, 2006


Best answer: After you log in normally and manually connect to the remote drive, do the following.
  1. Open System Preferences.
  2. Click Accounts.
  3. Click the Login Items tab. (might be called Startup Items in 10.3 -- I'm not sure)
  4. Drag the mounted drive icon into the list area in the Accounts window.
Now just disconnect from the drive, logout, and log back in to test. it
posted by pmbuko at 6:46 AM on September 15, 2006


There is probably a far more elegant way to do it, but this has worked for me before.

Mount the volume in question.
Hit F11 to clear your way to the desktop.
Hold down splat and option, dragging an alias for the volume to some inconspicuous location.
Start up System Preferences.
Go to Accounts
Select your account
Click the Login Items tab
Click the little plus at the bottom of the list of items
Browse around to the inconspicuous alias and Add it.
posted by majick at 6:47 AM on September 15, 2006


I wrote/ripped off from somewhere an applescript to do this. It should be pretty easy to adapt it (with your IP address and drive name) and turn it into an executable.

---

tell application "Finder"

delay 5

try
mount volume "smb://192.168.0.100/DOCUMENTS" as user name "" with password ""
on error
display dialog "There was an error mounting the Volume." & return & return & ¬
"The server may be unavailable at this time." & return & return & ¬
"Please inform the Network Administrator if the problem continues." buttons {"Okay"} default button 1
end try



try
mount volume "smb://192.168.0.100/MUSIC (M)" as user name "" with password ""
on error
display dialog "There was an error mounting the Volume." & return & return & ¬
"The server may be unavailable at this time." & return & return & ¬
"Please inform the Network Administrator if the problem continues." buttons {"Okay"} default button 1
end try

try
mount volume "smb://192.168.0.100/VIDEO (V)" as user name "" with password ""
on error
display dialog "There was an error mounting the Volume." & return & return & ¬
"The server may be unavailable at this time." & return & return & ¬
"Please inform the Network Administrator if the problem continues." buttons {"Okay"} default button 1
end try


end tell
posted by ascullion at 12:47 PM on September 15, 2006


of course, the final step to to make the executable run on startup.
posted by ascullion at 12:48 PM on September 15, 2006


« Older How to sort Windows desktop icon?   |   Need current advice for first time visit to New... Newer »
This thread is closed to new comments.