以python脚本的形式创建了一个服务,其中具有特定播放列表的VLC应该通过命令启动。 服务列表:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.bioxakep.biobot.plist</string>
<key>Program</key>
<string>/Users/BioMac/Documents/Scripts/newHome.py</string>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/tmp/biobot.out</string>
<key>StandardErrorPath</key>
<string>/tmp/biobot.err</string>
</dict>
</plist>
原则上缺少~/Library/LaunchAgents目录,因此服务位于/Library/LaunchAgents目录中。 服务正常启动,但: 在这个脚本中,我尝试启动程序(带有参数-playlist的VLC):
os.system('open -a vlc /Users/BioMac/Desktop/Radio.m3u')
VLC尝试启动并挂起,但在日志视图中出现错误:
LSOpenURLsWithRole () failed for the application /Aplplications/VLC.app with error -600 for the file /Users/BioMac/Desktop/Radio.m3u.
LSOpenURLsWithRole () failed for the application /Aplplications/VLC.app with error -10810 for the file /Users/BioMac/Desktop/Radio.m3u.
帮我理解。。。你知道吗
我认为应该使用
Console.app
(用Ctrl+Space显示)来发现关于挂起的更多信息。你知道吗更多关于代码-10810的信息可以在这里找到:http://www.thexlab.com/faqs/error-10810.html
有关代码-600的更多信息,请访问: https://discussions.apple.com/thread/1611175
相关问题 更多 >
编程相关推荐