Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Download file and put in special folder

  • Download file and put in special folder

    Posted by Jacob Danell on July 12, 2014 at 6:22 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?

    Jacob Danell replied 12 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 12, 2014 at 7:30 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

  • Jacob Danell

    July 13, 2014 at 1:28 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!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy