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


Click here to return to the 'Using Applescript to mount SMB shares' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using Applescript to mount SMB shares
Authored by: russh on Oct 29, '02 10:25:03PM

I think that things changed in Applescript 1.9. This format works for me in 10.2.1:

try
mount "smb://myname:passwd@server.domain.com/sharename"
end try

Hope that helps.



[ Reply to This | # ]
? Disconnect/Umount SMB shares using Applescript in 10.2/Jag ?
Authored by: bartelsrausch on Jan 17, '03 02:35:46AM

How would I dissconnect shares using Applescript? I connected them using the applescript command to /Volumes/<sharename>.
thanks for any help, thorsten



[ Reply to This | # ]
? Disconnect/Umount SMB shares using Applescript in 10.2/Jag ?
Authored by: serversurfer on Sep 13, '03 09:56:05AM
Try this:

tell application "Finder"
    eject (every disk whose name is "sharename")
end tell


---
Love,
The Surfer

[ Reply to This | # ]

Using Applescript to mount SMB shares
Authored by: limulus on Oct 06, '03 12:41:37AM

The correct syntax is "mount volume".

I found this useful to create a Favorite for a WebDAV volume hosted on a nonstandard port.



[ Reply to This | # ]
Using Applescript to mount SMB shares
Authored by: hartmurmur on Jan 21, '04 04:37:26PM
Is the process any different when you need to log in to a machine on a differnt domain that what you are in? I need to connect to a machine across domains and to the root. The following does not work for me.

try
mount volume "smb://domain\\userid:password@ipaddress/drive$"
end try


[ Reply to This | # ]
Using Applescript to mount SMB shares
Authored by: hartmurmur on Jan 21, '04 04:50:11PM
Nevermind. Found the answer in a different thread...

try
mount volume "smb://workgroup;userid:password@ipaddress/drive$"
end try
and also referenced at developer.apple.com: Using SMB on OS X

[ Reply to This | # ]