How can I use AppleScript and HTML DOM to download images from a webpage?

16 Replies, 1155 Views

Hey! I’ve been working on something similar. AppleScript HTML DOM download images is definitely possible, but it’s not the most efficient way. If you’re okay with a bit of a learning curve, check out `Automator` or `Shortcuts`—they might be easier for this kind of task.

If you’re sticking with AppleScript, here’s a tip: make sure your JavaScript is running after the page is fully loaded. You can use `window.onload` or a delay in AppleScript to handle that.

Also, this site has a great breakdown of DOM manipulation with AppleScript: [link].

Messages In This Thread



Users browsing this thread: 1 Guest(s)