• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Monitoring volume mounts was Re: Anyone here written a kExt???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitoring volume mounts was Re: Anyone here written a kExt???


  • Subject: Re: Monitoring volume mounts was Re: Anyone here written a kExt???
  • From: Eric Peyton <email@hidden>
  • Date: Fri, 15 Feb 2002 12:24:30 -0600

iTunes and iPhoto get launched by a different process currently when a specific type of device is attached (as is Print Center and Image Capture). There is no currently public way to set or unset those applications. This will most likely change in the future.

For now, you can create your own generic daemon pretty easily and add it to the login items if you need to do so. However at some point in the future I would imagine this won't be necessary.

Eric

On Friday, February 15, 2002, at 11:56 AM, Deirdre Saoirse Moen wrote:

At 8:13 AM -0600 2/14/02, Eric Peyton wrote:
Um, you can't do that from a kext really (well at least not easily). Volumes mount and unmount in user space. You can write programs that do that in user space (NSWorkspace provides notifications of volume mounts and unmounts) - is that what you are looking for?

I've been meaning to ask this for a while.

So if one wanted, say, upon the mounting of a specific volume (USB keychain drive with a known volume name in this case), to run a specific program, what would be the simplest way of going about it?

In other words, I know that there's mechanisms in place already for iTunes and iPhoto, but how does a mere mortal accomplish the same thing? There aren't daemon cocoa apps running around, at least not ones that ps is telling me about.
-- _Deirdre * http://deirdre.net "The evening news only spoils
the morning paper." -- Anne Lamott
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Monitoring volume mounts was Re: Anyone here written a kExt???
      • From: Deirdre Saoirse Moen <email@hidden>
References: 
 >Monitoring volume mounts was Re: Anyone here written a kExt??? (From: Deirdre Saoirse Moen <email@hidden>)

  • Prev by Date: Re: System volume
  • Next by Date: Re: Getting behind NSBeep
  • Previous by thread: Monitoring volume mounts was Re: Anyone here written a kExt???
  • Next by thread: Re: Monitoring volume mounts was Re: Anyone here written a kExt???
  • Index(es):
    • Date
    • Thread