I have found a solution to this for anyone who may be interested: It's fairly simple, instead of using the socket object, what I've done is use wget, which is a command prompt tool that can download files via command prompt, since you can execute commands through extendscript with system.callSystem, you can execute the wget tool to download the file from the url, all you need to do is download the wget tool from here: GNU Wget 1.19.4 for Windows then place wget.exe into the folder you want to download images to I've written a snippet that works with After Effects that will download the image with wget, then import that file into After Effects, just change the paths to suit: var folderLocation = "d:/wget"; var imageURL = "https://i.imgur.com/pKY6r1K.jpg"; var myCommand = "cd /d " + folderLocation + " & wget " + imageURL; system.callSystem("cmd /c \"" + myCommand + "\""); var path = new File(folderLocation + "/" + (imageURL.split("/")[imageURL.split("/").length - 1])); if (path.exists) { var io = new ImportOptions(path); var videoFile = app.project.importFile(io); } else { alert("There was a problem importing the image"); }
... View more