I am trying to create helper objects (it could be a daemon or an agent). This should be run on demand, and its many instances should be there, as you can see for the Safari head servers and assistants.
What have i tried? I mentioned these Apple Docs , Launch Tutorial, and Creating Launcher Items on Mac OS X
It is mentioned here that for the number of processes we should use a key NumberOfProcesses, I used it, but in Activity Monitor I see only one instance.
And my plist looks like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.anoop.test</string>
<key>NumberOfProcesses</key>
<string>5</string>
<key>ProgramArguments</key>
<array>
<string>/Users/anoopvaidya/Desktop/0@/WebTwainService</string>
<string>start</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Application is agent (UIElement)</key>
<string>YES</string>
</dict>
</plist>
Am I on the right track to replicate Launch Agent Assistant with Chrome? Please help me find the best way to do this?