?
Solved

OS 10.8 Automator to connect o folder inside of a windows share

Posted on 2012-08-13
8
Medium Priority
?
761 Views
Last Modified: 2012-08-14
Prior to Mac OS 10.8 I could use the automator to connect to server folders at startup.  Now it will only connect to the share not to a folder inside.  I set it as smb://servername/sharename/foldername  Now it will only connect as far as the sharename.  If I manually use the connect to server application it works fine but it will not work with automator.  I've also tried a script of
mount volume "smb://servername/sharename/foldername"
and it mounts the sharename.  This is very annoying since it has worked up until now and it works manually but not automatically.

Any help would be great,
Jon
0
Comment
Question by:Tim Lewis
  • 4
  • 4
8 Comments
 
LVL 13

Expert Comment

by:Xaelian
ID: 38289506
Well that's since MAC OS X Lion.

Try to use open "smb://servername/sharename/foldername"
0
 
LVL 1

Author Comment

by:Tim Lewis
ID: 38291500
I receive this when I try that.  "The document  '//servername/sharename/foldername' could not be opened.  AppleScript Editor cannot open files of this type."
0
 
LVL 13

Assisted Solution

by:Xaelian
Xaelian earned 2000 total points
ID: 38291513
run it as a shell script.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 1

Author Comment

by:Tim Lewis
ID: 38291617
Thanks.  So that does open the folder now but how do i get it as a mounted volume?  This needs to be like a mapped drive in Windows.  They will be accessing this frequently so I usually mount them as volumes and then have them shown on their desktop.
0
 
LVL 13

Accepted Solution

by:
Xaelian earned 2000 total points
ID: 38291624
You can do this (this is what I do).

mkdir /Volumes/foldername
mount -t smbfs //user@server/sharename/foldername /Volumes/foldername
0
 
LVL 1

Author Comment

by:Tim Lewis
ID: 38291682
Is Volumes the actual word I am using?  I get "no such file or directory".  This used to be so much easier!!!
0
 
LVL 13

Expert Comment

by:Xaelian
ID: 38291701
Is the directory created under /Volumes?
0
 
LVL 1

Author Comment

by:Tim Lewis
ID: 38292111
Yes it is.  Thank you this did work for me.  I missed the space before /Volumes the first time. I just made a shell script and added it to the automator and saved it as an application and then added that to the login items. Works perfectly.  Must say the old way was much better though.

Thanks again,
Jon
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The /etc/authorization file in Mac OS X 10.x can be used to control access to the various panes of the System Preferences amongst other things. It’s used by some of us Mac Sys Admin’s to give Standard Users access to System Prefs panes that only adm…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question