Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Easy access to AppleTalk shares in Panther' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Easy access to AppleTalk shares in Panther
Authored by: wjc on Dec 15, '03 01:09:42PM
Actually, network browsing in Panther kinda sucks, and just in time for me to convert a department from OS9.

The main problem is that while it's easy to BROWSE network volumes with the Network icon in the sidebar, it's quite difficult to USE them. Connecting this way doesn't give you the proper icon in the sidebar or on the desktop to show that you're connected. To get to it, you have to click multiple times through the Network icon to get back to your connected server.

After much investigation, I decided to adapt an Applescript we used under 9 to connect to our multiple servers (this allows us to enter our user/pass once rather than 4 times). This connection looks/acts just as if you connected via Connect to Server... for each volume, with the proper icon and eject button in the sidebar.

A good alternate is to create shortcuts for the servers you commonly use. Use Connect to Server... and once you have a successful connection, use the + icon to add it to the Favorites list. Repeat for each server/volume. This creates a shortcut file in your home/Favorites folder that others can also use, either in their favorites or by 2-clicking.

Here's a stripped-down version of the script we use. Note that it doesn't mask passwords; it's just a convenience script, not so much a security one. Adapt servername and volumename to your situation, might work equally well with smb (not tested):

display dialog "username:" default answer "" buttons {"Cancel", "OK"} default button 2
set the uName to the text returned of the result
display dialog "password:" default answer "" buttons {"Cancel", "OK"} default button 2
set the pWord to the text returned of the result

my netLogon(uName, pWord)
on netLogon(uName, pWord)
	tell application "Finder"
		try
			mount volume "afp:/at/servername/volumename" as user name uName with password pWord
		on error error_message number error_number
			if the error_number is -5016 then
				set error_message to "Cannot find servername!" & return & 
					"Can't connect to volumename"
				display dialog the error_message buttons {"ok"} 
					default button 1 with icon note giving up after 10
			end if
		end try
	end tell
end netLogon


[ Reply to This | # ]
10.3: Easy access to AppleTalk shares in Panther
Authored by: chabig on Dec 15, '03 02:22:30PM

Yes. Going through the Network icon is different than using "Connect to Server..." (cmd-K). Don't know why, but maybe 10.3.2 will make it better.



[ Reply to This | # ]
10.3: Easy access to AppleTalk shares in Panther
Authored by: Fofer on Dec 15, '03 08:22:13PM

This is helpful as the current UI for accessing networked servers is confusing (to say the least.)

And how do you DISCONNECT from a server you're connected to? Without an icon to drag to the trash, I'm left to just wait until I am no longer connected and then have to dismiss the inevitable error dialog.

Strange.



[ Reply to This | # ]
10.3: Easy access to AppleTalk shares in Panther
Authored by: wjc on Dec 16, '03 10:42:48AM

If you connect via Connect to Server, or the script, you'll get nice icons in the sidebar, complete with little eject icon next to each (be careful not to click it by accident).

Eject = unmounting for servers.

If you connect via the Network icon and browsing servers there, you can control (right)-click on the server and select eject to unmount.



[ Reply to This | # ]
10.3: Easy access to AppleTalk shares in Panther
Authored by: rygardner on Dec 17, '03 02:53:36PM

This code is great! It's the first script I've found that allows us to mount the piece of junk Novell servers my company insists we use ... Since they all have the same name.some extension (server.Vol_1, server.Vol_2, etc.) it has, up until now, screwed up any aliases I try to make to them.
Thanks again!



[ Reply to This | # ]