Forums > MaxMSP

JS to download file?

May 19, 2006 | 7:50 pm

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.


May 19, 2006 | 8:18 pm

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


May 20, 2006 | 2:38 am

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



f.e
May 20, 2006 | 7:48 am

google ?


May 20, 2006 | 8:24 am

Thanks Vade,

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

Anyone else?

thanks,
j



f.e
May 20, 2006 | 8:34 am

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|


May 23, 2006 | 5:47 pm

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.



f.e
May 24, 2006 | 6:32 am

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|


May 25, 2006 | 12:44 am

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.


May 25, 2006 | 2:36 am

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


May 26, 2006 | 8:17 am

thanks batchku,

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

best,

john.


Viewing 11 posts - 1 through 11 (of 11 total)