Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread Display Modes
Old Jul 10, 2013, 07:29 AM   #1
Pegasi Delta
macrumors newbie
Join Date: Apr 2009
Auto-create subfolder in network home folders?

I work for a school, and am leaving my position soon. I'm trying to get iMovie in to a working state before I leave, as currently most students are still using iMovie HD.

Basically, my issue is this: I want to store events in each student's home folder, as issues can arise with the standard system of having events stored locally, in that students then have access to each other's footage and can potentially delete or mess with it. It also really clogs up the events list to have all student's footage visible at all times, which is even worse when the students aren't great about pruning old footage once they've finished with it.

I know there are workarounds to store events in the home folder for each user, so that A) they're not stuck using the same machine all the time and B) they only have access to their own events. I'm using the solution whereby an alias for a folder in the user's home folder sits in place of the iMovie event folder on the local machine's HDD, so it auto redirects events to a specified folder in the home folder of the current user.

However, I don't simply want to dump all their events in their Movies folder, as they use those a lot. It's possible, but I'd rather avoid it if I can. I'd much rather have a subfolder called Events within each user's Movies folder, to keep things tidier and easier for them.

So my question is: Is there any way to auto-create a subfolder in the Movies folder of a newly created network account's home folder? I assume there's some way to do it using scripts etc. and it'd be workable to have something which an admin just runs after creating a new account or group of accounts, though having it as an automated part of the account creation process would be ideal if that's at all possible. My primary concern is that I'm leaving this position at the end of the academic year, and so I want something as automated as possible so my replacement doesn't have to fiddle around with a high maintenance system that I implemented before leaving.

So is there (preferably) some kind of policy on the server side to create a nonstandard home folder structure? Or is there a script I could create and then run after account creations to check for the existence of an Events subfolder in Movies, and create one if it doesn't exist already?

We're running 10.5 both client and server side (I know, I know...), if that's going to present more difficulties at all.

Any answers or advice would be much appreciated.

Last edited by Pegasi Delta; Jul 10, 2013 at 07:45 AM.
Pegasi Delta is offline   0 Reply With Quote
Old Jul 10, 2013, 06:12 PM   #2
macrumors 6502a
Join Date: Mar 2012
Location: Belgium
Checking for the existence of a folder is easy with Applescript however I've no experience with OS X server or network home folders so you'll have to look into that.

tell application "Finder"
	-- insert actions here
	if not (exists folder "Events" of (path to movies folder)) then
		make new folder at (path to movies folder) with properties {name:"Events"}
	end if
end tell
Also take a look at path to (folder) in the Commands Reference here. Perhaps the path to (folder) from network domain might be of help.
Attached Thumbnails
Click image for larger version

Name:	Picture 2.png
Views:	40
Size:	93.2 KB
ID:	422536  
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote
Old Jul 10, 2013, 11:43 PM   #3
macrumors 6502
Join Date: Jul 2005
Location: Mooresville, NC
Send a message via AIM to DJLC Send a message via MSN to DJLC Send a message via Yahoo to DJLC Send a message via Skype™ to DJLC
There's two ways I can think of to do this, but you'll have to Google for directions as I can't recall exact steps...

1) If OS X Server creates the network home folders, you can change the template it uses to create those folders. My predecessor in a similar job had it set up this way.

2) If the OS X workstations create the home folders before uploading to the network, you'll have to modify the default user template on those.
-John Mairs
DJLC is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
create folders applescript joennie Mac Programming 3 Jul 30, 2013 06:43 PM
How to create more finder favorite folders? sambobsessed OS X 10.8 Mountain Lion 4 Apr 9, 2013 01:43 AM
Can't create new folders Killwin98 OS X 10.8 Mountain Lion 2 Feb 28, 2013 11:30 AM
Resolved: MBP not auto-connecting to home network. vong MacBook Pro 8 Sep 26, 2012 02:50 PM
Network user login - can't create new user, probably related to home folder JimboStormforce Mac OS X Server, Xserve, and Networking 12 Aug 27, 2012 06:58 AM

Forum Jump

All times are GMT -5. The time now is 01:47 PM.

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

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