Using script to open to a specific package page in the package manager

Daniel Gardner's icon

I am newer to using scripts in Max, and I'm trying to figure out if there is a way for me to write a script that, when triggered, opens a specific package page in the package manager.

I am trying to make the process of downloading the required package to run the patch as easy as possible for the end user. Obviously, there are other ways around this problem (write out the instructions for what to do to download a package; use [; openbrowser https://cycling74.com/packages/{package_name} etc.), but the foolproof-est solution would seem to be to have the package manager open to the correct page.

There are two steps that I'm not sure how to make happen (which might be useful to someone else in isolation): (1) open any panel that can be accessed from the dropdown menus (e.g. package manager, MIDI setup, preferences, etc.) and (2) once I've done that, navigate to a specific page.

It's entirely possible this way of thinking about the problem is too end-user-y, and that I should be thinking about the whole process differently when working with a script.

LSka's icon

I found a way to open a specific package page:

  1. go to https://cycling74.com/packages/

  2. go to the page of the package you want to download

  3. right-click on the "Open in Max" link and copy the link. It will look something like this: c74max://packagemanager/data%20knot

  4. In your Max patch create a message box and write "; max launchbrowser c74max://packagemanager/data%20knot"