At 15:39 +0000 01.26.2001, Sveinbjorn Thordarson wrote:
>I'm trying to write a MacPerl script that mounts a remote File Shared
>volume via TCP/IP, via AppleScript among other things.  I've found the
>AppleScript code required to mount via AppleTalk, but does anyone know
>how you connect via TCP/IP?

Basically the same code, just different name for the volume.  Start with
afp://.

For instance, to mount my local file server Williams over AppleTalk, I can
do (using Mac::Glue):

        use Mac::Glue;
        my $f = new Mac::Glue 'Finder';  # this is an OSAX, so can be any app
        $f->mount_volume('Williams', on_server => 'Williams');

For getting the same volume over TCP/IP:

        use Mac::Glue;
        my $f = new Mac::Glue 'Finder';
        $f->mount_volume('afp://Williams');

In AppleScript:

        mount volume "afp://Williams"

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to