Skip to main content
Participant
October 3, 2005
Question

How to download file from script?

  • October 3, 2005
  • 1 reply
  • 321 views
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
This topic has been closed for replies.

1 reply

Known Participant
October 3, 2005
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