Re: Installing a Launchd.plist
Jack Brindle
SMJobBless is a royal pain to get going. By far the easiest (and perhaps coolest) way of running a privileged app (usually for an installer) is to do it through AppleScript. Something like: “do shell script xxx with administrator privileges” does the job of setting up authentication quite nicely and gets around all the SMJobBless mess. This is set up in a top-level app, one that runs when the installer is launched. It then launches a lower-level app (with privileges) where the actual work is done. Once thing to watch for - the low level program does not inherent the same settings as a normal application. It will probably run in English with a US locale, as opposed to whatever language and locale setting the user has set. It is easy to capture these in the top level app and send them over to the main installer, usually through command line arguments. I doubt it is usable in an MAS program, mostly because it requires a two-program approach. But then so does SMJobBless, so it might be worth a try. - Jack
|
|