Open patcher window from PowerPoint or KeyNote?

Sep 18, 2013 at 6:04am

Open patcher window from PowerPoint or KeyNote?

I’m giving a talk about some Max stuff at a university in a few weeks. I have two choices
1) Create images from my presentation and build some kind of patcher that will let me navigate/display them (I’m sure that’s probably easy but I don’t want the distraction right now)

2) Use Powerpoint or KeyNote and be able to invoke Max patchers through a “link” of some kind

I would prefer the second approach — is there a way to do this?

#265614
Sep 18, 2013 at 9:35am

Keynote doesn’t let you embed links to max files (or, if so, not at all obviously). Maybe this has changed, but from what I read it sounded like Apple describing a limitation as a feature…

I’ve had better luck with PowerPoint, though it’s been a while.

#265633
Sep 18, 2013 at 10:42am

Hey, Peter —

I was hoping that there might be a scheme/protocol that Max registers (or someone has written an app to register Max this way) that could be invoked. E.g.

max://path/to/maxpatcher.maxpat

I know how to create these protocols on Windows but I haven’t looked into doing this on a Mac

#265641
Sep 18, 2013 at 11:59am

Maybe via AppleScript?

I couldn’t do a localhost URL with file:

#265655
Sep 18, 2013 at 12:24pm

I found some info on stackoverflow — looks like I can create a simple app (AppleScript-based would be fine but can be anything that can create an app) and then edit the plist file to register that app as a protocol handler. Hopefully this still works on recent versions of the OS but I’ll try it ASAP

http://stackoverflow.com/questions/471581/how-to-map-a-custom-protocol-to-an-application-on-the-mac

#265660
Sep 18, 2013 at 1:56pm

I once made a patch which started a tune in itunes and its also runs an apple script file which monitors itunes . When the song ended it tells an app called midipipe to broadcast a midinote back to max..

when i tried it a few weeks ago it didn’t worked maybe you want to play with it

you can find the patch here http://www.deceasedunfinishedprojects.nl/?p=108#more-108

#265665
Sep 18, 2013 at 3:22pm

That’s the wrong way around — I want to invoke Max patchers from somewhere else.

Powerpoint will let me use the file: protocol but there’s apparently no way to turn off the warning message that pops up when you trigger the link. Keynote won’t handle file: at all, as Peter noted.

I’m afraid that if I want to do this seamlessly, I’m going to have to run an http server on my machine and invoke external programs through it.

Sigh

#265674
Sep 19, 2013 at 8:33am

So I ended up building a simple http server that runs on my machine and responds to a url that looks like this:

http://localhost:8081/openfile/path/to/MaxPatcher.maxpat

The server will then open the patcher (although clearly this can be used to open any file, not just Max stuff). Works with PowerPoint and should work with KeyNote as well

If anyone has a use for it, let me know and I’ll put it out there. It’s a real hack but does the job.

#265731

You must be logged in to reply to this topic.