• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Add app to "launch on startup" list via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Add app to "launch on startup" list via AppleScript
      • From: Chunk 1978 <email@hidden>
  • Prev by Date: Re: How to get a NSButton (check box) state
  • Next by Date: NSButtonCell never asked to draw its whole rect -- clips at width 54.0
  • Previous by thread: Re: How to get a NSButton (check box) state
  • Next by thread: Re: Add app to "launch on startup" list via AppleScript
  • Index(es):
    • Date
    • Thread