Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HiRez

macrumors 603
Original poster
Jan 6, 2004
6,250
2,576
Western US
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.