|
|
Using Applescript to mount SMB shares
Applescript can also be used to very easily mount SMB shares. You can either put the applescript icon on your desktop for double-click access, or you can put it in your login items. The exact applescript is as follows (simple!) tell application "Finder" For example... tell application "Finder"
Using Applescript to mount SMB shares
So simple, so obvious, yet so overlooked. This tip deserves to be on the main page.
Using Applescript to mount SMB shares
Ouch! Schooled by both dwarne and monkeyvoodoo on the same tip!
Using Applescript to mount SMB shares
I have used the above and it works wonderful. how ever since i have upgraded a computer to 10.2 it seems not to work. I get the following error: "Finder got an error: an error type of -10814 has occurred" The exact script is as follows:
Using Applescript to mount SMB shares
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.
? Disconnect/Umount SMB shares using Applescript in 10.2/Jag ?
How would I dissconnect shares using Applescript? I connected them using the applescript command to /Volumes/<sharename>.
? Disconnect/Umount SMB shares using Applescript in 10.2/Jag ?
Try this:
tell application "Finder"
---
Using Applescript to mount SMB shares
The correct syntax is "mount volume".
Using Applescript to mount SMB shares
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.
Using Applescript to mount SMB shares
Nevermind. Found the answer in a different thread...
and also referenced at developer.apple.com:
Using SMB on OS X
Using Applescript to mount SMB shares
This is exactly what I need and works great.
Solution: No Finder Window
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 tryFor 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 trySave 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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|