Hi,

I have the following AppleScript that let me add an application to the "launch on startup" menu:

tell application "System Events"
        make login item at end with properties {path:"...", kind:application}
        end tell

The script works fine when I start it in the script editor for AppleScripts.

But when I implement it in my cocoa app, the code is executed properly (when I copy the code that is created out of the log window and start it in the script editor it works) - but the app don't appear in the "launch on startup" menu under preferences -> users ...

Does my app have the propper rights to do that?
Is that the problem?



thanks for any help!

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to