Adobe AIR应用程序是否可以通过命令行输出运行到控制台? [英] Can an Adobe AIR Application run via the command line output to console?
问题描述
我有一个AIR应用程序通过onInvoke接受命令行参数。一切都很好,但我不知道如何打印一些状态消息回到用户(对于stdout /控制台,可以这么说)。是可能的吗?
I have an AIR application that takes command-line arguments via onInvoke. All is good, but I cannot figure out how to print some status messages back to the user (to stdout / console, so to speak). Is it possible?
即使是一个默认的日志文件的痕迹也没问题,但我找不到任何地方的任何信息。我需要创建自己的日志文件吗?
Even a default log file for traces would be fine, but I can't find any info about it anywhere. Do I need to create my own log file? Now that'd be silly.
推荐答案
查看 CommandProxy 。它是AIR应用程序周围的低级包装器,允许您将命令从AS3发送回代理以与底层操作系统进行通信。你应该能够通过这种方法添加一个写入命令行的方法。
Take a look at CommandProxy. It is a low level wrapper around your AIR application that lets you send command from AS3 back to the proxy for communicating with the underlying OS. You should be able to add a means of writing to the command line via such a method.
这篇关于Adobe AIR应用程序是否可以通过命令行输出运行到控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!