Re: AFP,SMB share mounting
Re: AFP,SMB share mounting
- Subject: Re: AFP,SMB share mounting
- From: "Neal A. Crocker" <email@hidden>
- Date: Sat, 23 Feb 2002 00:33:22 -0800
Date: Fri, 22 Feb 2002 14:11:23 -0800
Subject: AFP,SMB share mounting
From: Rob Barris <email@hidden>
To: <email@hidden>
I know how to mount an AFP share from an AppleScript:
mount volume "afp://server1/" as user "joe" with password "toe"
I know how to mount an SMB share at the command line
(after setting up a .nsmbrc file in ~user...)
mkdir foo
mount_smbfs -N //USER@SERVER/SHARE ./foo
I don't know how to mount an SMB share from AppleScript.
Try:
tell application "Finder"
activate
make new Finder window at front
open location "smb://Domain;username:password@computername/sharename/"
end tell
Also, try a variation on this script where you omit the password and
maybe the username. I think you might be prompted if you do.
For more info, goto the apple support page and do and advanced search
of the knowledgebase for SMB, with keyword kmosX. The first hit
should be an article entitled "Mac OS X 10.1: How to Connect to an
SMB Volume (Microsoft Windows)" (Article ID: 106471).
For a very detailed explanation of the syntax of the smb url in my script, see:
http://www.ietf.org/internet-drafts/draft-crhertel-smb-url-02.txt
I don't know how to mount an AFP share from the command line!
Any guesses on the last two?
Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.