Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to download file from script?

New Here ,
Oct 03, 2005 Oct 03, 2005
Hello All

I have following problem.
There is an URL to file in the Web. I can add a Thumbnnail to my favorites pane and display this URL in the content window. I would like to download file. Method

app.preflightFiles

invoked with array containing URL as argument returns true (doc says that method returns true on success) but i don't know where downloaded file is.

There is another method - app.system - which i can invoke with any command line, but I would like not to do this.

Is there any way, except system, to download file? Or is there any way to know where preflighted files are?

Thanks in advance
Michal
TOPICS
Scripting
289
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2005 Oct 03, 2005
LATEST
I don't know how to do this myself, but I do know that the stock photo Javascript code does something like this. After looking at a bunch of images in stock photo, you end up with a bunch of JPEG files on your hard disk that all came from the web. Since I think stockphoto is written entirely in web HTML, JavaScript and BridgeScript, I presume this can be done somehow (getting a file from the web onto your hard disk).

My suggestion would be to try to figure out how stock photo does it by looking at it's javascript code. But, be warned the stock photo code is not simple to follow.

--John
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines