如何从URL下载图像以在Photoshop脚本中使用(ExtendScript Toolkit)

Rod*_*phe 1 javascript photoshop extendscript

在我的Photoshop javascript(使用ExtendScript工具箱)中,我需要在处理图像之前先下载图像。我正在尝试使用wget,如下所示:

app.system("wget https://dl.dropboxusercontent.com/u/73950/IMG_1827%20%282%29.png > ~/Desktop/test.png");
Run Code Online (Sandbox Code Playgroud)

不幸的是,这会产生一个空的png文件。

用Photoshop编写脚本时从URL下载文件的正确方法是什么?

fab*_*fas 5

尝试了wget命令,但没有运气。但这对我来说很有效。

app.system("curl -o ~/Desktop/test.png https://dl.dropboxusercontent.com/u/73950/IMG_1827%20%282%29.png")
Run Code Online (Sandbox Code Playgroud)