FORUMS: list search recent posts

Download file and put in special folder

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jacob Danell
Download file and put in special folder
on Jul 12, 2014 at 6:22:50 pm

Hi! I'm working on a script that needs an external file to work. I don't want to ship this file with the script because it's relative big and some people already have this external file. What I wish to do is with a simple press of a button, download this file from the internet and automatically place it the same folder as the script.
Is this possible somehow?


Return to posts index

Dan Ebberts
Re: Download file and put in special folder
on Jul 12, 2014 at 7:30:12 pm

The only reliable way I've seen to do something like that involves using cURL. It's easier on a Mac because cURL support is build into the OS, so you can just use system.callSystem(cmdStr) to send the appropriate cURL command to the OS. It's a lot trickier (but still possible) on Windows.


Dan



Return to posts index

Jacob Danell
Re: Download file and put in special folder
on Jul 13, 2014 at 1:28:54 am

I wished there were a way without any external software on both mac and win. On win I got a working way using wget but idk how it will be with the licensing, have to read some about it. But I might use cURL on Mac then at least.

Thanks!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]