Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 1, 2009, 02:06 PM   #1
xphacter
macrumors newbie
 
Join Date: Jul 2009
Automator or Samba Help

Hello,

I have a small computer lab, with a teachers station and 14 workstations, on each of the workstations. The teacher needs to manipulate a work folder on each of the students workstations, so I created several shared SMB folders on the student's desktops and I have the teacher go through the network and mount them via finder, I wanted to automate the process by creating an automator script that connects to each computer, however if a computer isn't on the "Connect to servers" plugin on the teacher stations hangs for about 30 seconds and pretty much kills finder for that amount of time. (I'm looking for a faster timeout for this solution, which I prefer doing) I also tried using mount_smbfs however I don't like how I have to create folders for each mac in the /Volumes/ folder, I like how having a script run when the teacher wants and the teacher can eject and see everything from their desktop. What I think is a viable solution is to have automator somehow resolve each Mac network name (samba?) and see if it's on/has an IP and then connect to a sever, is there a way to do, If IP then connect to server?

Thanks
xphacter is offline   0 Reply With Quote
Old Jul 2, 2009, 07:40 AM   #2
xphacter
Thread Starter
macrumors newbie
 
Join Date: Jul 2009
is this the right area to ask this question?
xphacter is offline   0 Reply With Quote
Old Jul 2, 2009, 07:43 AM   #3
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Automator won't work for this - it simply isn't sophisticated enough for what you're trying to do. However, AppleScript is a much better solution - you can even drop down to the UNIX layer and execute shell commands within an AppleScript, if need be.

Yes, this is the right area to ask this sort of question, however I am not familiar with Samba programming, and can't be of much assistance.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old Jul 2, 2009, 10:09 AM   #4
GroovyLinuxGuy
macrumors regular
 
Join Date: Apr 2006
Location: Canada
Quote:
Originally Posted by xphacter View Post
Hello,

I have a small computer lab, with a teachers station and 14 workstations, on each of the workstations. The teacher needs to manipulate a work folder on each of the students workstations, so I created several shared SMB folders on the student's desktops and I have the teacher go through the network and mount them via finder, I wanted to automate the process by creating an automator script that connects to each computer, however if a computer isn't on the "Connect to servers" plugin on the teacher stations hangs for about 30 seconds and pretty much kills finder for that amount of time. (I'm looking for a faster timeout for this solution, which I prefer doing) I also tried using mount_smbfs however I don't like how I have to create folders for each mac in the /Volumes/ folder, I like how having a script run when the teacher wants and the teacher can eject and see everything from their desktop. What I think is a viable solution is to have automator somehow resolve each Mac network name (samba?) and see if it's on/has an IP and then connect to a sever, is there a way to do, If IP then connect to server?

Thanks
Without knowing exactly what the teacher has to do for manipulating the work folders, I would say that you actually have the setup backwards. Have the students work folders on a central server/workstation and have them connect to it. It is less work to have 14 individuals mount an individual share than have 1 person mount 14 individual shares. If the students need to take their work home, they can always copy it to a removable drive or what ever.

If you really need to go down the path you are on, I would have to say that using mount_smbfs is the correct way of doing it. You could have a script that pings the workstations and only if it is up will it create a directory to mount the samba share in. You could gui-fy the process using Duckbill when the script is done if needed.

Cheers
__________________
"My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
GroovyLinuxGuy is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Using Automator to play audio file from within Automator made application? nobodyhome OS X 10.8 Mountain Lion 0 Jan 14, 2014 03:23 PM
Help with SAMBA Mount: Win 7 Client jasonvp Mac OS X Server, Xserve, and Networking 4 May 24, 2013 05:25 PM
Accessing a file via Samba causeisunknown OS X 6 Aug 27, 2012 09:42 AM
Samba Shares Headaches KlytusLord Mac Basics and Help 2 Jun 21, 2012 09:56 AM
Mac Samba Transfer Issue Beaverman3001 OS X 1 Jun 20, 2012 10:19 AM

Forum Jump

All times are GMT -5. The time now is 03:24 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC