Add app to "launch on startup" list via AppleScript
Add app to "launch on startup" list via AppleScript
- Subject: Add app to "launch on startup" list via AppleScript
- From: Martin Batholdy <email@hidden>
- Date: Tue, 9 Jun 2009 01:15:29 +0200
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@hidden)
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:
This email sent to email@hidden