tags:

views:

3

answers:

0

I would like to specify that my AIR app can open text files that may not have a file extension as part of the name. I would like to create a specification for my Foo-app.xml file to enable this.

For files of type ".log", the looks like:

<fileType>
 <name>com.apple.TextEdit</name>
 <extension>log</extension>
 <contentType>text/plain</contentType>
</fileType>

With this configuration, I can successfully drag/drop files with a ".log" extension (e.g. "bar.log").

What I would like to accomplish is drag/drop a file with no extension (e.g. "bar_log_05-10").

When I try an empty tag, the AIR application generation fails (with no message, at least under FlashBuilder)

<fileType>
 <name>com.apple.TextEdit</name>
 <extension></extension>
 <contentType>text/plain</contentType>
</fileType>

Has anyone accomplished this?

Thanks!

Mark

related questions