JS to download file?

May 19, 2006 at 7:50pm

JS to download file?

I’m trying to make a patch which can download a file from a URL. I DONT have JITTER so i was thinking JS could do it – problem is i know nothing about JS. Could someone let me know if it’s possible / how to do it?

thanks,

John.

#26069
May 19, 2006 at 8:18pm

you can use the shell external and the ‘curl’ program or the ‘wget’
program to download files through a command line interface. curl for
the win.

v a d e //

http://www.vade.info
abstrakt.vade.info

#77453
May 20, 2006 at 2:38am

Hi There,
I was wondering if there were any good tutorials, aside from what
ships with the product, on how to work with JavaScript in MAX?

Sorry if this is a dumb question, I am new to the product.


Michael

#77454
May 20, 2006 at 7:48am

google ?

#77455
May 20, 2006 at 8:24am

Thanks Vade,

but I was hoping there was a way to do this with the js or mxj objects?

Anyone else?

thanks,
j

#77456
May 20, 2006 at 8:34am

I think it might be of interest :

http://www.devdaily.com/java/edu/pj/pj010011/index.shtml

cheers

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|

#77457
May 23, 2006 at 5:47pm

Thanks for that f.e. – i’m still sufficiently stupid regarding java for it to completely confuse me though.

If anyone has a bit of time to explain to me how to get this to work i’d appreciate it greatly.

thanks,

john.

#77458
May 24, 2006 at 6:32am

You mean, explain everything or just a few ? Come on, john burton, take
a Java tutorial on you left hand, and the Writing Java Externals manual
on your right ! What you got on this link is an already working class.
So, what you have to do is to adapt it to your needs : like a seperate
class you’ll call from your Java external, or integrated in/as a Java
external. So better tell us what’s your knowledge regarding Java for us
to help ;-)

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|

#77459
May 25, 2006 at 12:44am

I’m a complete newbie to Java, i find it a but confusing at the moment – finding the ‘java-doc’ folder helped a little. Right now i don’t have time to devote to learning it so i’ll put it aside.

Thanks to those who made suggestions – unless anyone has a really easy way of downloading a file from a URL i’ll move along.

john.

#77460
May 25, 2006 at 2:36am

hi john,
i have a bunch of java classesfor downloading files from a URL, audio
files (aif or mp3) directly from a URL into an MSP buffer as well as
ftp download/upload.

i missed the beginning of this thread so i’m not sure what you want
exactly but it’s probably possible with little/no modification to my
stuff. get in touch if.

yours,
a

#77461
May 26, 2006 at 8:17am

thanks batchku,

I’ll be in touch when i finish the little tour i’m on right now.

best,

john.

#77462

You must be logged in to reply to this topic.