[Pythonmac-SIG] using appscript to add a login item?

2008-12-03 Thread Bill Janssen
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 _

Re: [Pythonmac-SIG] using appscript to add a login item?

2008-12-03 Thread Bill Janssen
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 ne

Re: [Pythonmac-SIG] using appscript to add a login item?

2008-12-03 Thread Ned Deily
In article <[EMAIL PROTECTED]>, 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

Re: [Pythonmac-SIG] using appscript to add a login item?

2008-12-03 Thread Drew Houston
This bit of Applescript does it: tell application "System Events" to make new login item with properties { path: "/path/to/YourApp.app", hidden:false } at end Not 100% sure how that translates to appscript though. Drew Bill Janssen wrote: I'm trying to add a login item in an installer, and