PDA

View Full Version : Return info from launchd WatchPath trigger?




HiRez
Mar 28, 2008, 08:29 PM
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.