Infobutton works for urls but not local files

M1 Pro MBP 32/1T Tahoe 26.2 / Cabbage 2.10.0

I’m able to use infobutton to launch external websites in a browser, but I was hoping to be able to use it to load an svg file in my .csd directory. When I try to do so I get an -50 error. Should I be able to load local files? Code I’m using is file(“layout.svg”) Thanks.

Can you try putting the svg into a html file?

Doesn’t like file(index.html”) either. Tried feeding it a file path but that didn’t seem to help.

Update: Well, at least with a file path I don’t get the error, but nothing happens, either.

It looks like the OS is not letting Cabbage open the browser for local files for some reason. Leave it with me, I’m currently knee deep with Cabbage 3 right now, but I’ll try to get around to this. I did promise to continue fixing issues with Cabbage 2, and this is obviously one I need to look at :frowning:

1 Like

I’ve pushed a fix for this. A new beta shold be available shortly. :+1:

p/s I didn’t have time to test, but I think it should work Ok now..

1 Like