Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Using Applescript to mount SMB shares' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Solution: No Finder Window
Authored by: forman on Sun, Jan 11 2004 at 9:12PM PST
Use the following Applescript to mount smb drives in the background without opening Finder windows. The mount point is automatically created in the /Volumes directory.
try
   mount volume "smb://user@server/share"
end try
For a user with a login name of "forman" on a server called "vortex" with SMB shares called "local" and "scratch" use the following script:
try
   mount volume "smb://forman@vortex/local"
   mount volume "smb://forman@vortex/scratch"
end try
Save the script as an application using the Script Editor and put it in System Preferences -> Accounts -> Startup Items to mount the drives when you log in.

Michael.

[ Reply to This | # ]