Forums > Dev

Launching Standalone app by dbl-clicking a document – how can app get file name?

May 18, 2010 | 1:42 am

Say I’ve made a Standalone app with Max, and it can open MIDI files.

Now, on my computer’s desktop, say I have a MIDI file, and (on a Mac, anyways) I "Get Info" on that file, and set the "Open with:" field to my Standalone app.

Now, when I double-click the MIDI file, my Standalone app launches…good so far. HOWEVER, how do I get the Max patch to grab the filename of the file that launched the app?

If I could get the filename, then I could have some Max object inside the Standalone open that file, or do something meaningful with it on launch. Otherwise, you’re kind of breaking the user’s expectations of document/application interaction.

Thanks for any ideas!
Leigh


May 18, 2010 | 8:49 am

There is an undocumented opened object that comes with MaxMSP.

-> http://cycling74.com/forums/topic.php?id=21338

p


May 18, 2010 | 7:05 pm

Thank you. Nice find. I searched, but hadn’t found that thread!


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