Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Pegasi Delta

macrumors newbie
Original poster
Apr 17, 2009
7
0
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:

kryten2

macrumors 65816
Mar 17, 2012
1,115
99
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.
 

Attachments

  • Picture 2.png
    Picture 2.png
    93.2 KB · Views: 101

DJLC

macrumors 6502a
Jul 17, 2005
959
404
North Carolina
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.