[Pythonmac-SIG] Macintosh Appletalk connections?

Bill Bedford billb@mousa.demon.co.uk
Thu, 30 Mar 2000 18:49:30 +0100


At 10:28 am -0500 30/03/00, Schollnick, Benjamin wrote:

>Hi!
>
>I was wondering if there was any method to make a Appletalk "connection" to
>another server, from inside a python program.  In otherwords, mount a
>server's
>drive, from inside a python program.

If you have system 8.5 or later run gensuitemodule on  Standard 
Addition in the scripting additions folder. This will give you a 
mount_volume appleevent command

This is the applescript dictonary for this command, the python one 
will be similar

mount volume: Mount the specified AppleShare volume
	mount volume string  -- the name or URL path (starting with 
'afp://') of the volume to mount
		on server string -- the server on which the volume resides
		[in AppleTalk zone string] -- the AppleTalk zone in which the 
server resides
		[as user name string] -- the user name with which to log in 
to the server; omit for guest access
		[with password string] -- the password for the user name; 
omit for guest access

-- 
Bill Bedford

The trouble is that things *never* get better, they just stay the same,
only more so.