Auto-Load JavaScript File when Opening a Patch

António Florença's icon

Hi,

I wrote a JS file to set a patch in Presentation Mode, to set its zoomfactor as 2, and to scroll it to the top left corner (after zooming.) How can I load the JS file automatically when opening the patch?

Any hints or insights on this would be most welcome.

Edit: I just needed a "del" object between the "loadbang" object and "compile" message.