Determine programmatically if an AIR app was launched from the command line?
Is it possible to determine programmatically whether an AIR开发者_运维技巧 app was launched from the command line or via double-click on the application icon?
I want to be able to do something like:
`if (e.launchedFromCLI) { foo(); }`
Try listening to NativeApplication
INVOKE
event, it is the only place I know where you can find such info.
Seems that you can not distinguish CMD launch from icon launch - unless you pass some arguments in CMD.
http://help.adobe.com/en_US/AIR/1.5/jslr/flash/desktop/NativeApplication.html#event:invoke
精彩评论