Forums > MaxMSP

intro to jsextensions folder please?

January 21, 2012 | 5:40 pm

Could someone please post a brief intro/tutorial for the jsextensions folder?

Thanks

Joe


January 22, 2012 | 8:28 pm

If you have any javascript objects (functions/constants/etc) that you want to be available globally in every [js] object, then save them in the jsextensions folder as a new file (this way the file won’t get overwritten during incremental software updates to max as a whole). It’s like being able to #include snippets of code that you find most useful and use repeatedly.

For example I have a file in jsextensions that includes a functions for parsing @style attributes typed in to the [js] object – much easier to call one line of code than copy/paste the whole lot into every javascript I write!


January 22, 2012 | 9:20 pm

Luke

Many thanks for the info

1 question

if I make a standalone, will the jsextensions get packaged with it?


January 22, 2012 | 9:51 pm

I have absolutely no idea but I would guess perhaps yes. Test it out and reply back and then everyone will know for sure!


January 23, 2012 | 4:11 am

Whats the benefit?I have JavaScript files in one of my folders outside the Max installation but in the max search path. They are really visible to my projects and won’t get deleted if I upgrade max?


January 23, 2012 | 5:25 am

dhj: did u try making standalone?

If so, success?

If success, could you post specific instructions?

Thanks

Joe


January 23, 2012 | 12:41 pm

I’ve never tried to make a standalone. Are you suggesting that js files don’t get picked up for standalones unless they are in that special folder?


January 23, 2012 | 5:35 pm

dhj: no, the opposite


January 23, 2012 | 7:02 pm

If that’s the case, then what’s the problem — you put them in a folder in your search path and they’ll get picked up!


January 23, 2012 | 8:44 pm

I haven’t done standalone at all yet, but thanks tons for the info

Joe


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