stumts Posted February 3, 2013 Posted February 3, 2013 Criei um script e gostaria que ele fosse executado automaticamente durante o login do usuário através de um “launch agent” em ~/Library/LaunchAgents. Alguém poderia me explicar como criar esse "launch agente" para o meu script, Fonte: http://blogdopersonaltec.wordpress.com/2011/08/30/solucao-gratuita-para-acessar-discos-ntfs-no-lion/
pernacabeluda Posted February 3, 2013 Posted February 3, 2013 Veja um exemplo <?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>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>Label</key> <string>com.exemplo.script</string> <key>ProgramArguments</key> <array> <string>/caminho/para/o/script.sh</string> </array> </dict> </plist> -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
stumts Posted February 3, 2013 Author Posted February 3, 2013 Veja um exemplo <?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>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>Label</key> <string>com.exemplo.script</string> <key>ProgramArguments</key> <array> <string>/caminho/para/o/script.sh</string> </array> </dict> </plist> Funcionou perfeitamente. Muito obrigado pela ajuda.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now