Bill Janssen <[EMAIL PROTECTED]> wrote: > I'm trying to add a login item in an installer, and I thought using > appscript would be the simplest way. > > >>> from appscript import * > >>> a = app("System Events") > >>> a.login_items() > > Sure enough, a display of items. But how do I create a new one and add > it? > > Bill
app("System Events").login_items.end.make( new=k.login_item, with_properties={ k.hidden: False, k.name: "UpLibJanitor", k.path: "/Applications/Utilities/UpLibJanitor.app" } ) _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig