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.
Solution: No Finder Window
Authored by: forman on Jan 11, '04 09:12:17PM
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.
   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:
   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.


[ Reply to This | # ]