Return info from launchd WatchPath trigger?

Discussion in 'Mac Programming' started by HiRez, Mar 28, 2008.

  1. macrumors 601

    HiRez

    #1
    Hi, I'm thinking about setting up a launchd process that will watch a folder. The problem is, I want multiple launchd triggers (watching separate folders) to call into the same script, so I need to know which folder the trigger came from. Is there any way to tell this? Does (or can) launchd include that information as an argument to the command or something? When setting up the launchd process, you can include arguments in the plist, but as far as I can tell these are static values.
     

Share This Page