नीचे एक कार्य उदाहरण है।
एक फ़ाइल
~/Library/LaunchAgents/my.everydaytasks.plist
सामग्री के साथ बनाएँ:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>my.everydaytasks</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/EverydayTasks.app/Contents/MacOS/EverydayTasks</string>
</array>
<key>ProcessType</key>
<string>Interactive</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
</dict>
</plist>
इस उदाहरण बनाने के लिए मूल पोस्ट है कि मुझे मदद की देखें:
https://superuser.com/a/229792/43997
टेस के लिए टी आप अनलोड करने के लिए
launchctl unload -w ~/Library/LaunchAgents/my.everydaytasks.plist
देखें टर्मिनल
launchctl load -w ~/Library/LaunchAgents/my.everydaytasks.plist
में इस चलाने की आवश्यकता भी
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html
इस "लॉग इन आइटम का उपयोग कर Starup में अपनी ऐप्लिकेशन जोड़ने के अन्य रास्ता नहीं है "।
https://github.com/justin/Shared-File-List-Example
आप शायद मैं कैसे AppleScript के साथ ऐसा कर सकता है पर विस्तृत किया जा सका: यह कैसे लागू करने पर इस उदाहरण परियोजना देखते हैं? (या सी ++) –
एप्पल के [विषय पर देव दस्तावेज़] (http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/CustomLogin.html) लॉगिन आइटम जोड़ने के लिए 3 विधियों का वर्णन करता है , एक के लिए एक कोड स्निपेट और दूसरे के लिए नमूना कोड के लिए एक लिंक के साथ। –
प्लिस्ट फ़ाइल का एक उदाहरण और इसे कैसे जोड़ना बहुत उपयोगी होगा – Dmitriy