可在Adobe AIR应用程序通过命令行运行输出到控制台?

可在Adobe AIR应用程序通过命令行运行输出到控制台?

问题描述:

我有一个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.