Level 1 (10 points)

so. upgraded our school to iMovie11.

suddenly, we can't use the software anymore, as it has decided that it will only accept a root folder location for its event storage.. Not a good idea with a school full of network homed kids, with a propensity to chop and change seats and machines which restore themselves to a virgin state.

so. is there a solution, or do we simply stop using iMovie? its pretty disappointing, and i can't see any reason for it. we are on a gigabit network, so data transfer speed is not an issue, as far as i can see.

i've tried setting up login hooks to create aliases to network home Movie folders, which results in iMovie crashing on an import. I've tried enabling the use of network volumes in the iMovie plist, and iMovie tells me that the network volumes have zero free space (we run quotas, and they are fine).

is this simply a case of a piece of sofware being utterly useless? is my only option to downgrade back to a functional version?

thanks

flow

2x xserve, 30x MacBook, 3x MacBook Pro, 10x iMac, 20x eMac, 30x PC, Mac OS X (10.6.6), mix intel/PPC
• Level 1 (10 points)

right. fixed it, only works with a single user at a time, though, so no fast switching.

oh, and my users are maintained with an OS X server running OD. adjust the uHOME= line for other systems

step 1:

created a folder in /Library/Scripts

sudo mkdir -p /Library/Scripts/iMovie\ Redirect

step 2:

cat > /Library/Scripts/iMovie\ Redirect/iMovieRedirect.sh

#!/bin/sh

# this script sets up a pre-user redirect of the iMovie root folder

iMov="iMovie Events.localized"

uHOME=dscl /LDAPv3/<insert your OD server here> -read /Users/$1 NFSHomeDirectory | cut -d" " -f2 #clear up if [[ -L "/$iMov" ]] ; then

\rm -r "/$iMov" fi #be nice, jsut in case we have a muppet who somehow got around the redirects. save their stuff! if [[ -d "/$iMov" ]] ; then

Today=date "+%d.%m.%y"

mv "/$iMov /$iMov.$Today" fi #make sure user has the right folder. if [[ ! -d "$uHOME/Movies/$iMov" ]] ; then mkdir "$uHOME/Movies/$iMov" chown${uHOME##*/} "$uHOME/Movies/$iMov"

fi

ln -s "$uHOME/Movies/$iMov" "/$iMov" exit 0 ctrl-D to save that lot. step 3: created a logout script cat > /Library/Scripts/iMovie\ Redirect/iMovieRemove.sh #!/bin/sh #this script removes the softlink created by the login script iMovieRedirect.sh iMov="iMovie Events.localized" if [[ -L "/$iMov" ]] ; then

\rm -r "/\$iMov"

fi

exit 0

ctrl-D to save that lot.

step 4:

get them ready to be executed

sudo chown -R root:admin /Library/Scripts/iMovie\ Redirect

sudo chmod 775 /Library/Scripts/iMovie\ Redirect

sudo chmod 544 /Library/Scripts/iMovie\ Redirect/*

step 5:

set up login and lgout hooks