Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Quit iTunes on Fast User Switch?

Quit iTunes on Fast User Switch?
Thread Tools
Forum Regular
Join Date: Jan 2001
Location: Valencia, CA
Status: Offline
Reply With Quote
Dec 29, 2004, 09:36 AM
 
Sorry if this has been covered before, but I searched and couldn't find anything that answered my question exactly...

Our family computer has multiple users, all wanting to share (with read/write privileges) their iPhoto and iTunes libraries. I used the approach described here to accomplish this: http://captnswing.net/howto/itunes/. Everything is working great, except that if multiple users have iTunes or iPhoto open and they both make changes to the media libraries, only the changes made by the user who quits the app last will be preserved.

So, what I believe I need to do is quit iPhoto and iTunes when the user is switched.

Any ideas on how to do that? I was thinking about firing off a two line applescript whenever the logout happend, but I'm not entirely sure how to hook into that user switch event. Thoughts?
(Last edited by Waterman; Dec 29, 2004 at 09:54 AM. )
     
Forum Regular
Join Date: Sep 2004
Location: Earth
Status: Offline
Reply With Quote
Jan 1, 2005, 12:10 PM
 
Hi Waterman.


Everything is working great, except that if multiple users have iTunes or iPhoto open and they both make changes to the media libraries, only the changes made by the user who quits the app last will be preserved.
Well, you should expect that since the method you're using is a bit of a hack and Apple did not design these apps for a shared database, i.e. an iTunes or iPhoto library shared by multiple users. They were built with the design point being each user managing their own photos or music. Sharing photos and music has been sort of an afterthought.

So, what I believe I need to do is quit iPhoto and iTunes when the user is switched.

Any ideas on how to do that? I was thinking about firing off a two line applescript whenever the logout happend, but I'm not entirely sure how to hook into that user switch event. Thoughts?
Take a look at WInSwitch. It appears to support the execution of scripts or apps when switching into or out of a user. You could probably use that feature to launch an AppleScript on switch-out to quit iTunes and iPhoto, then launch them again on switch-in. Since it appears to support aliases, you could probably put the appropriate scripts in the Shared folder! ;-)
Good Luck!

Dr. Smoke
Author: Troubleshooting Mac OS X
     
Forum Regular
Join Date: Jan 2001
Location: Valencia, CA
Status: Offline
Reply With Quote
Jan 1, 2005, 11:20 PM
 
That's exactly what I was looking for. Thanks.

Yes, I know it's a hack, but it's what my family wanted.

I appreciate your help!
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:18 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2