Re: How to make an app launch on login?
Re: How to make an app launch on login?
- Subject: Re: How to make an app launch on login?
- From: sqwarqDev <email@hidden>
- Date: Wed, 20 Apr 2016 09:01:07 +0000 (GMT)
If you’re willing (or able: beware sandboxing issues) to call either osascript or NSAppleScript, you can do this via a bit of AppleScript magic:
tell application "Finder" to set aPath to POSIX path of (application file id ”com.yourBundleID.yourApp" as string)
tell application "System Events”
make new login item at end of login items with properties {path:aPath, hidden:false, kind:\"Application\", name:”Your App Name”}
end tell
Best
Phil
@sqwarq
_______________________________________________
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