Adobe AIR 程序如何索引用户计算机上的所有图像?

发布于 2024-09-04 19:59:01 字数 242 浏览 4 评论 0原文

Adobe AIR 程序对用户计算机上的所有图像进行索引的最快方法是什么?

使用开源 ActionScript-3、MXML 库和类。

  • 最快 - 相同的电脑配置,不同的时间(秒)

  • 索引 - 获取绝对链接列表(例如 c://bla-bla /file )并将它们保存到文件(index.txt)

  • 所有图像(如 JPEG、PNG)

What is the fastest way for a Adobe AIR program program to index all images on a users' computer?

Using Open Source ActionScript-3, MXML Libs and classes.

  • Fastest - Same pc configuration, different time (seconds)

  • To index - get a list of absolute links (like c://bla-bla/file ) and save them into file (index.txt)

  • All images (like JPEGs, PNGs)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苹果你个爱泡泡 2024-09-11 19:59:01

不确定它是否是最快的,但我想到的是使用 AIR 的 Native处理 API 通过命令提示符进行搜索。

一个简单的例子是

find *.jpg *.jpeg *.png

您可以使用 standardOutput.readUTFBytes。这可能比将搜索结果写入文本文件然后加载更快。
之后您可以解析该文件。您可以随时查看查找选项以获得更好的结果。

无论如何,只是一个想法……说到这里,
引用@quoo:

你为什么要这样做?

Not sure if it's the fastest, but what comes to mind is using AIR's Native Process API to make the search through command prompt.

A simple example would be

find *.jpg *.jpeg *.png

You can then use standardOutput.readUTFBytes. This might be faster then writing the search result to a text file then loading.
After that you can parse the file. You can always have a look at the find options for better results.

Anyway, just a thought...speaking of which,
to quote @quoo:

why would you want to do this?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文