Does AppleScript have image recognition like AutoIt or AutoHotkey
In AutoHotkey and AutoIt the script is able to recognize images on webpages. Can AppleScript d开发者_运维问答o that? How?
Short answer... no. Applescript is a tool for controlling other applications. It doesn't have a lot of capabilities itself. It's power is that you can combine the power of other applications into one script. As such you'd have to find a separate application that does the image stuff, then you can use applescript to automate that application.
You might want to look at this program. I watched the demo, it looks really interesting, and it may do what you want. I've never used it personally.
The easiest way to do this is unfortunately to use Applescript to get the source for the current browser page. You can then scan the text to recognize the image. As a language though Applescript isn't ideal for this. I'd suggest using Appscript + Python or Appscript + Ruby. Ruby and Python simply have far superior text mining libraries. Combining them with Appscript makes this sort of work pretty easy.
精彩评论