Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
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
kryten2
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.

Code:
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:	7
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
DJLC
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

Reply
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

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


All times are GMT -5. The time now is 04:56 AM.

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

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