Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Automator or Applescript help - pasting to subject line of new email message action sabdal Mac Applications and Mac App Store 0 Sep 16, 2011 01:22 PM
Help with Automator folder actions!? Fallinangel Mac Basics and Help 0 Sep 8, 2011 08:12 AM
force afp or samba? carr1on Mac OS X Server, Xserve, and Networking 6 Jun 20, 2011 04:40 PM
Resolved: Samba Connections Hang Finder? Archon Gold Mac Basics and Help 1 Jun 5, 2011 10:31 PM
How can I automate video file conversion? Automator, or AppleScript? AVR2 Mac Applications and Mac App Store 0 Oct 4, 2009 08:15 AM


All times are GMT -5. The time now is 08:41 AM.

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

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